diff options
author | NeonXP <i@neonxp.dev> | 2023-05-07 16:26:36 +0300 |
---|---|---|
committer | NeonXP <i@neonxp.dev> | 2023-05-07 16:26:36 +0300 |
commit | 82bd3303e366b916556d43428b3e2745123593c0 (patch) | |
tree | 00a765c9192a618c983a329bb2411f4af114a292 /etc/Caddyfile |
initial
Diffstat (limited to 'etc/Caddyfile')
-rw-r--r-- | etc/Caddyfile | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/etc/Caddyfile b/etc/Caddyfile new file mode 100644 index 0000000..f85445b --- /dev/null +++ b/etc/Caddyfile @@ -0,0 +1,90 @@ +:80 { + root * /usr/share/caddy + file_server +} +gitrepo.ru { + reverse_proxy git:3000 +} +ci.gitrepo.ru { + reverse_proxy woodpecker-server:8000 +} +# goproxy.ru { +# reverse_proxy localhost:8081 +# } + +go.neonxp.dev { + reverse_proxy goproxy:8080 +} + +neonxp.dev { + tls i@neonxp.dev + encode gzip + root * /var/www/neonxp.dev/public + file_server + 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/neonxp.dev.log + } +} + +timer.neonxp.dev { + tls i@neonxp.dev + encode gzip + root * /var/www/timer.neonxp.dev + file_server + 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/timer.neonxp.dev.log + } +} + +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 + } +} + +1flash.ru { + tls i@neonxp.dev + reverse_proxy localhost:8082 +} + +oper2.ru { + tls i@neonxp.dev + redir * https://remember-botsyk.livejournal.com/ 302 +} +# https://caddyserver.com/docs/caddyfile |