web/caddy/Caddyfile

261 lines
4.2 KiB
Text
Raw Permalink Normal View History

(common) {
2024-01-31 00:48:20 +00:00
encode gzip
header -Server
2024-11-08 10:13:02 +00:00
handle_path /android-chrome-192x192.png {
2024-09-19 15:52:42 +00:00
root * /static/android-chrome-192x192.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /android-chrome-512x512.png {
2024-09-19 15:52:42 +00:00
root * /static/android-chrome-512x512.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /apple-touch-icon.png {
2024-09-19 15:52:42 +00:00
root * /static/apple-touch-icon.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
2024-02-01 23:14:18 +00:00
handle_path /browserconfig.xml {
2024-09-19 15:52:42 +00:00
root * /static/browserconfig.xml
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /favicon-16x16.png {
2024-09-19 15:52:42 +00:00
root * /static/favicon-16x16.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
2024-02-01 23:14:18 +00:00
handle_path /favicon-32x32.png {
2024-09-19 15:52:42 +00:00
root * /static/favicon-32x32.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /favicon.ico {
2024-09-19 15:52:42 +00:00
root * /static/favicon.ico
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
2024-02-01 23:14:18 +00:00
handle_path /humans.txt {
2024-09-19 15:52:42 +00:00
root * /static/humans.txt
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /mstile-144x144.png {
2024-09-19 15:52:42 +00:00
root * /static/mstile-144x144.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /mstile-150x150.png {
2024-09-19 15:52:42 +00:00
root * /static/mstile-150x150.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /mstile-310x150.png {
2024-09-19 15:52:42 +00:00
root * /static/mstile-310x150.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /mstile-310x310.png {
2024-09-19 15:52:42 +00:00
root * /static/mstile-310x310.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /mstile-70x70.png {
2024-09-19 15:52:42 +00:00
root * /static/mstile-70x70.png
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /robots.txt {
2024-09-19 15:52:42 +00:00
root * /static/robots.txt
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /safari-pinned-tab.svg {
2024-09-19 15:52:42 +00:00
root * /static/safari-pinned-tab.svg
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /security.txt {
2024-09-19 15:52:42 +00:00
root * /static/security.txt
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /site.webmanifest {
2024-09-19 15:52:42 +00:00
root * /static/site.webmanifest
2024-09-17 14:43:11 +00:00
file_server
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
2024-11-20 13:12:01 +00:00
handle_path /tailwindcssv3-freedium-hotfix.js {
root * /static/tailwindcssv3-freedium-hotfix.js
file_server
}
2024-02-02 00:03:48 +00:00
handle_path /websocket {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-02-02 00:03:48 +00:00
2024-09-17 14:43:11 +00:00
handle_path /meta.json {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-09-17 14:43:11 +00:00
handle_path /cdn-cgi/challenge-platform/scripts/jsd/main.js {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-09-17 14:43:11 +00:00
2024-02-02 00:03:48 +00:00
handle_path /cdn-cgi/rum {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-02-02 00:03:48 +00:00
2024-02-01 23:14:18 +00:00
handle_path /graphql/websocket {
respond "Access denied" 403
2024-01-31 00:48:20 +00:00
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /onboarding/* {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /wp-* {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /.env {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /api* {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /apple-touch-icon-precomposed.png {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /rss.xml {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /.git/* {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /apple-touch-icon-120x120.png {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /apple-touch-icon-120x120-precomposed.png {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /apple-touch-icon-152x152.png {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /apple-touch-icon-152x152-precomposed.png {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /.well-known/* {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
2024-01-31 00:48:20 +00:00
handle_path /cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1 {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
handle_path /cdn-cgi/challenge-platform/h/g/orchestrate/chl_page/v1 {
respond "Access denied" 403
}
2024-11-08 10:13:02 +00:00
}
(freedium_web) {
reverse_proxy freedium_web:7080 {
import header_up
import lb_try
}
}
(plausible_web) {
reverse_proxy freedium_plausible:8000 {
import header_up
import lb_try
}
}
(header_up) {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
(lb_try) {
lb_try_duration 30s
lb_try_interval 1s
}
plausible.freedium.local {
tls internal
import common
import plausible_web
}
:6753 {
import common
import plausible_web
}
freedium.local {
tls internal
import common
import freedium_web
}
:6752 {
import common
import freedium_web
2024-10-29 10:22:40 +00:00
}