This commit is contained in:
21
config/caddy/couch.mhny.dev.caddy
Normal file
21
config/caddy/couch.mhny.dev.caddy
Normal file
@@ -0,0 +1,21 @@
|
||||
couch.mhny.dev {
|
||||
root * /var/www/couchos
|
||||
|
||||
handle_path /api/* {
|
||||
reverse_proxy 100.64.0.15:8765 {
|
||||
header_up Authorization "Bearer {env.COUCHD_BEARER_TOKEN}"
|
||||
}
|
||||
}
|
||||
|
||||
handle {
|
||||
file_server
|
||||
}
|
||||
|
||||
header {
|
||||
Content-Security-Policy "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self'; base-uri 'none'; frame-ancestors 'none'"
|
||||
Permissions-Policy "camera=(), geolocation=(), microphone=()"
|
||||
Referrer-Policy "no-referrer"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user