diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2023-12-28 02:23:25 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2023-12-28 02:23:25 +0300 |
commit | 37a6972f5e02928cb522a44996d78c55fbad3862 (patch) | |
tree | 9fa0cbd16405f146ab1693157501ffb2cffc1237 /etc | |
parent | ca4fdd4927c6005eb5562a09a95184b28865e893 (diff) |
Рефакторинг
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Caddyfile | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/etc/Caddyfile b/etc/Caddyfile index ab84b55..652cb4b 100644 --- a/etc/Caddyfile +++ b/etc/Caddyfile @@ -25,11 +25,19 @@ go.neonxp.dev { reverse_proxy goproxy_server:8080 } +go.neonxp.ru { + reverse_proxy goproxy_server:8080 +} + # idec.neonxp.dev { # reverse_proxy iigo:8080 # } neonxp.dev { + redir https://neonxp.ru +} + +neonxp.ru { tls i@neonxp.dev encode gzip root * /var/www/neonxp.dev/public @@ -69,27 +77,4 @@ timer.neonxp.dev { } } -files.neonxp.dev { - tls i@neonxp.dev - encode gzip - root * /files - file_server { - browse - } - header / { - Content-Security-Policy = "upgrade-insecure-requests; default-src 'self'; style-src 'self'; script-src 'self'; img-src 'self'; object-src 'self'; worker-src 'self'; manifest-src 'self';" - Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload" - X-Xss-Protection = "1; mode=block" - X-Frame-Options = "DENY" - X-Content-Type-Options = "nosniff" - Referrer-Policy = "strict-origin-when-cross-origin" - Permissions-Policy = "fullscreen=(self)" - cache-control = "max-age=0,no-cache,no-store,must-revalidate" - } - log { - output file /var/log/caddy/neonxp.dev/files.neonxp.dev.log - } -} - - # https://caddyserver.com/docs/caddyfile |