2024-06-21 07:18:05 +00:00
|
|
|
(default) {
|
|
|
|
encode zstd gzip
|
|
|
|
handle_path /robots.txt {
|
|
|
|
file_server * {
|
|
|
|
root /var/www/robots/robots.txt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
http://mastodon.ny4.dev:80 {
|
|
|
|
import default
|
|
|
|
handle_path /system/* {
|
|
|
|
file_server * {
|
|
|
|
root /var/lib/mastodon/public-system
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
handle /api/v1/streaming/* {
|
|
|
|
reverse_proxy unix//run/mastodon-streaming/streaming-1.socket {
|
|
|
|
header_up X-Forwarded-Proto "https"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
route * {
|
|
|
|
file_server * {
|
|
|
|
root @mastodon@/public
|
|
|
|
pass_thru
|
|
|
|
}
|
|
|
|
reverse_proxy * unix//run/mastodon-web/web.socket {
|
|
|
|
header_up X-Forwarded-Proto "https"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
handle_errors {
|
|
|
|
root * @mastodon@/public
|
|
|
|
rewrite 500.html
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
http://matrix.ny4.dev:80 {
|
|
|
|
import default
|
2024-07-24 16:55:58 +00:00
|
|
|
reverse_proxy /_matrix/* unix//run/matrix-synapse/synapse.sock {
|
|
|
|
header_up X-Forwarded-Proto "https"
|
|
|
|
}
|
|
|
|
reverse_proxy /_synapse/client/* unix//run/matrix-synapse/synapse.sock {
|
|
|
|
header_up X-Forwarded-Proto "https"
|
|
|
|
}
|
|
|
|
reverse_proxy /health unix//run/matrix-synapse/synapse.sock {
|
|
|
|
header_up X-Forwarded-Proto "https"
|
|
|
|
}
|
2024-06-21 07:18:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
http://syncv3.ny4.dev:80 {
|
|
|
|
import default
|
2024-07-24 16:55:58 +00:00
|
|
|
reverse_proxy unix//run/matrix-sliding-sync/sync.sock {
|
|
|
|
header_up X-Forwarded-Proto "https"
|
|
|
|
}
|
2024-06-21 07:18:05 +00:00
|
|
|
}
|