2024-05-04 08:12:36 +00:00
|
|
|
{
|
|
|
|
# Disables HTTP/3 for Hysteria
|
|
|
|
# https://github.com/apernet/hysteria/issues/768
|
|
|
|
servers :443 {
|
|
|
|
protocols h1 h2 h2c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:18:05 +00:00
|
|
|
(default) {
|
|
|
|
encode zstd gzip
|
|
|
|
|
2024-05-04 08:12:36 +00:00
|
|
|
header {
|
|
|
|
# https://observatory.mozilla.org/analyze/ny4.dev
|
|
|
|
# https://infosec.mozilla.org/guidelines/web_security
|
|
|
|
# https://caddyserver.com/docs/caddyfile/directives/header#examples
|
|
|
|
|
2024-05-23 16:15:10 +00:00
|
|
|
?Content-Security-Policy "default-src https: blob: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
|
|
|
|
?Permissions-Policy interest-Hpcohort=()
|
|
|
|
?Strict-Transport-Security max-age=31536000;
|
|
|
|
?X-Content-Type-Options nosniff
|
|
|
|
?X-Frame-Options DENY
|
2024-05-04 08:12:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
handle_path /robots.txt {
|
|
|
|
file_server * {
|
|
|
|
root /var/www/robots/robots.txt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
www.ny4.dev {
|
|
|
|
import default
|
|
|
|
redir https://ny4.dev
|
|
|
|
}
|
|
|
|
|
2024-06-20 05:49:27 +00:00
|
|
|
# get the certificate for hysteria
|
|
|
|
tyo0.ny4.dev {
|
|
|
|
import default
|
|
|
|
redir https://ny4.dev
|
|
|
|
}
|
|
|
|
|
2024-05-04 08:12:36 +00:00
|
|
|
ny4.dev {
|
|
|
|
import default
|
2024-05-23 16:15:10 +00:00
|
|
|
|
|
|
|
# Synapse
|
|
|
|
header /.well-known/matrix/* Content-Type application/json
|
|
|
|
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
|
|
|
handle_path /.well-known/matrix/* {
|
|
|
|
file_server * {
|
|
|
|
root /var/www/matrix
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Mastodon
|
|
|
|
header /.well-known/webfinger Access-Control-Allow-Origin *
|
|
|
|
redir /.well-known/webfinger https://mastodon.ny4.dev{uri} permanent
|
2024-06-05 09:51:38 +00:00
|
|
|
|
2024-06-05 10:21:07 +00:00
|
|
|
# Homepage Dashboard
|
2024-06-05 09:51:38 +00:00
|
|
|
reverse_proxy localhost:9200
|
2024-05-04 08:12:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
searx.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy localhost:8100
|
|
|
|
}
|
|
|
|
|
|
|
|
pb.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy localhost:8200
|
|
|
|
}
|
|
|
|
|
|
|
|
uptime.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy localhost:8300
|
|
|
|
}
|
|
|
|
|
|
|
|
ntfy.ny4.dev {
|
|
|
|
import default
|
2024-05-23 16:15:10 +00:00
|
|
|
reverse_proxy unix//run/ntfy-sh/ntfy.sock
|
|
|
|
}
|
|
|
|
|
|
|
|
pixiv.ny4.dev {
|
|
|
|
import default
|
|
|
|
basicauth {
|
|
|
|
Guanran928 $2a$14$aI977hGZCX6H9IiyG7avdOFxXFGtlt7DcIahTkInPhEx9Sfhk7bri
|
|
|
|
}
|
|
|
|
reverse_proxy unix//run/pixivfe/pixiv.sock
|
|
|
|
}
|
|
|
|
|
|
|
|
id.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy localhost:8800
|
|
|
|
}
|
|
|
|
|
|
|
|
element.ny4.dev {
|
|
|
|
import default
|
|
|
|
root * @element@
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
|
2024-06-10 08:48:35 +00:00
|
|
|
git.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy unix//run/forgejo/forgejo.sock
|
|
|
|
}
|
2024-07-11 15:03:11 +00:00
|
|
|
|
|
|
|
rss.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy localhost:9300
|
|
|
|
}
|
2024-07-13 18:01:10 +00:00
|
|
|
|
|
|
|
reddit.ny4.dev {
|
|
|
|
import default
|
|
|
|
reverse_proxy localhost:9400
|
|
|
|
}
|