graylog updates, test.debyl.io, scripts for reference
This commit is contained in:
@@ -327,22 +327,45 @@
|
||||
|
||||
reverse_proxy localhost:9054
|
||||
}
|
||||
|
||||
|
||||
# Serve static files with SPA fallback
|
||||
handle {
|
||||
root * /usr/local/share/fulfillr-site
|
||||
try_files {path} {path}/ /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "same-origin"
|
||||
}
|
||||
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/fulfillr.log
|
||||
format json
|
||||
}
|
||||
}
|
||||
|
||||
# ============================================================================
|
||||
# TEST/STAGING SITES
|
||||
# ============================================================================
|
||||
|
||||
# Test Site - test.debyl.io (Public static site hosting, no caching)
|
||||
test.debyl.io {
|
||||
import common_headers
|
||||
|
||||
root * /srv/test-site
|
||||
try_files {path} {path}/ /index.html
|
||||
file_server
|
||||
|
||||
# Disable all caching for test sites
|
||||
header Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
|
||||
header Pragma "no-cache"
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/test.log
|
||||
format json
|
||||
level {{ caddy_log_level }}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user