65 lines
No EOL
1.5 KiB
Text
65 lines
No EOL
1.5 KiB
Text
*.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
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
handle @streaming {
|
|
reverse_proxy http://192.168.1.73:58834 {
|
|
header_up Accept-Encoding identity
|
|
}
|
|
}
|
|
|
|
reverse_proxy http://192.168.1.73:46098 {
|
|
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
|
|
} |