mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Merge branch 'caddyfile' into 'main'
Add a Caddyfile See merge request soapbox-pub/ditto!617
This commit is contained in:
commit
f2766842ef
1 changed files with 23 additions and 0 deletions
23
installation/Caddyfile
Normal file
23
installation/Caddyfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
example.com {
|
||||
@public path /packs/* /instance/* /images/* /favicon.ico /sw.js /sw.js.map
|
||||
|
||||
handle /packs/* {
|
||||
root * /opt/ditto/public
|
||||
header Cache-Control "public, max-age=31536000, immutable"
|
||||
header Strict-Transport-Security "max-age=31536000"
|
||||
file_server
|
||||
}
|
||||
|
||||
handle @public {
|
||||
root * /opt/ditto/public
|
||||
file_server
|
||||
}
|
||||
|
||||
handle /metrics {
|
||||
respond "Access denied" 403
|
||||
}
|
||||
|
||||
handle {
|
||||
reverse_proxy :4036
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue