64 lines
No EOL
1.7 KiB
Text
64 lines
No EOL
1.7 KiB
Text
synth.download {
|
|
root * /var/www/website/_site
|
|
file_server
|
|
try_files {path} {path}.html {path}/ =404
|
|
|
|
# kill
|
|
redir /.git* https://nbg1-speed.hetzner.com/10GB.bin
|
|
|
|
# redirects
|
|
redir /home /
|
|
redir /~sneexy* https://sneexy.synth.download
|
|
|
|
# iceshrimp.net split domain
|
|
redir /.well-known/webfinger https://beeping.synth.download{uri} 301
|
|
redir /.well-known/host-meta https://beeping.synth.download{uri} 301
|
|
redir /.well-known/nodeinfo https://beeping.synth.download{uri} 301
|
|
|
|
# xmpp xep-0156
|
|
handle /.well-known/host-meta {
|
|
@options method OPTIONS
|
|
handle @options {
|
|
header Access-Control-Allow-Origin "*"
|
|
header Content-Type "application/xrd+xml"
|
|
}
|
|
}
|
|
handle /.well-known/host-meta.json {
|
|
@options method OPTIONS
|
|
handle @options {
|
|
header Access-Control-Allow-Origin "*"
|
|
header Content-Type "application/xrd+xml"
|
|
}
|
|
}
|
|
|
|
import common-settings
|
|
import log website
|
|
import robots-txt
|
|
}
|
|
|
|
# sneexy
|
|
sneexy.synth.download {
|
|
handle {
|
|
root * /var/www/website/_site/subdomain/sneexy
|
|
file_server
|
|
try_files {path} {path}.html {path}/ =404
|
|
}
|
|
|
|
# assets
|
|
handle_path /assets/* {
|
|
root * /var/www/website/_site/assets
|
|
file_server browse
|
|
}
|
|
|
|
# redirect synth.download links back to original site
|
|
redir /home https://synth.download
|
|
redir /services https://synth.download/services
|
|
redir /admins https://synth.download/admins
|
|
redir /donate https://synth.download/donate
|
|
redir /privacy https://synth.download/privacy
|
|
redir /tos https://synth.download/tos
|
|
|
|
import common-settings
|
|
import log sneexy
|
|
import robots-txt
|
|
} |