mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Serving ca.crt from Caddy instead of React app.
This commit is contained in:
parent
3fc6c1f7f1
commit
3d58b25b04
2 changed files with 14 additions and 0 deletions
|
|
@ -29,6 +29,13 @@
|
|||
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
||||
header Access-Control-Allow-Headers "Content-Type, Accept"
|
||||
|
||||
handle /ca.crt {
|
||||
root * /opt/media/config/ssl
|
||||
header Content-Type "application/x-x509-ca-cert"
|
||||
header Content-Disposition "attachment; filename=\"wrolpi-ca.crt\""
|
||||
file_server
|
||||
}
|
||||
|
||||
handle /favicon.ico {
|
||||
root * /etc/caddy
|
||||
rewrite * /favicon.ico
|
||||
|
|
|
|||
|
|
@ -29,6 +29,13 @@
|
|||
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
||||
header Access-Control-Allow-Headers "Content-Type, Accept"
|
||||
|
||||
handle /ca.crt {
|
||||
root * /media/wrolpi/config/ssl
|
||||
header Content-Type "application/x-x509-ca-cert"
|
||||
header Content-Disposition "attachment; filename=\"wrolpi-ca.crt\""
|
||||
file_server
|
||||
}
|
||||
|
||||
handle /favicon.ico {
|
||||
root * /opt/wrolpi
|
||||
rewrite * /icon.ico
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue