synth.download/.old/etc/caddy/sites-enabled/ejabberd

28 lines
874 B
Text
Raw Normal View History

# generally, for xmpp, it's mostly a similar thing to the mailserver
# upload endpoint
upload.xmpp.synth.download {
request_body {
max_size 100m
}
handle /upload/* {
@options method OPTIONS
handle @options {
header Access-Control-Allow-Origin "*"
header Access-Control-Allow-Methods "PUT, GET, OPTIONS, HEAD"
header Access-Control-Allow-Headers "Authorization, Content-Type"
header Access-Control-Allow-Credentials "true"
header Content-Length "0"
header Content-Type "text/plain"
respond 200
}
reverse_proxy 127.0.0.1:5050
}
}
# other domains we just grab certificates for
xmpp.synth.download, muc.xmpp.synth.download, proxy.xmpp.synth.download, pubsub.xmpp.synth.download {
respond "what if it was called gyattmpp instead"
}