summaryrefslogtreecommitdiff
path: root/etc/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/Caddyfile')
-rw-r--r--etc/Caddyfile31
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