synth.download/neptunium/etc/caddy/sites-enabled/mastodon

65 lines
1.5 KiB
Text
Raw Normal View History

*.merping.synth.download {
handle /.well-known/atproto-did {
rewrite * /.well-known/atproto-did?protocol=ap&id=@{http.request.host.labels.3}@merping.synth.download
reverse_proxy https://fed.brid.gy {
header_up Host fed.brid.gy
}
}
}
2025-07-19 23:52:19 -05:00
merping.synth.download {
@local {
file
not path /
}
@local_media {
path_regexp /system/(.*)
}
@streaming {
path /api/v1/streaming
path /api/v1/streaming/*
}
@cache_control {
path_regexp ^/(emoji|packs|/system/accounts/avatars|/system/media_attachments/files)
}
handle_errors {
rewrite 500.html
reverse_proxy http://192.168.1.73:42261 {
header_up Accept-Encoding identity
}
2025-07-19 23:52:19 -05:00
}
header {
Strict-Transport-Security "max-age=31536000"
}
header /sw.js Cache-Control "public, max-age=0"
header @cache_control Cache-Control "public, max-age=31536000, immutable"
handle @local {
reverse_proxy http://192.168.1.73:42261 {
header_up Accept-Encoding identity
}
2025-07-19 23:52:19 -05:00
}
handle @streaming {
reverse_proxy http://192.168.1.73:58834 {
2025-07-19 23:52:19 -05:00
header_up Accept-Encoding identity
}
}
reverse_proxy http://192.168.1.73:46098 {
2025-07-19 23:52:19 -05:00
header_up Accept-Encoding identity
header_up X-Forwarded-Port 443
transport http {
keepalive 5s
keepalive_idle_conns 10
}
}
import common-settings
import log mastodon
import robots-txt
}