Serving ca.crt from Caddy instead of React app.

This commit is contained in:
Roland 2026-04-05 13:14:32 -06:00
parent 3fc6c1f7f1
commit 3d58b25b04
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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