magnetar/.dev/Caddyfile

41 lines
831 B
Caddyfile

magnetar-dev.local {
log {
}
handle /.well-known/host-meta {
reverse_proxy 127.0.0.1:4939
}
handle /.well-known/webfinger {
reverse_proxy 127.0.0.1:4939
}
handle /.well-known/nodeinfo {
reverse_proxy 127.0.0.1:4939
}
handle /nodeinfo/* {
reverse_proxy 127.0.0.1:4939
}
handle /mag/* {
reverse_proxy 127.0.0.1:4939
}
@render_html {
not path /api* /proxy* /files* /avatar* /identicon*
header Accept text/html*
}
@frontend {
path /favicon.ico /favicon.png /favicon.svg /manifest.json /api-doc /sw.js /static-assets* /client-assets* /assets* /twemoji* /url /fe-api*
}
reverse_proxy @render_html 127.0.0.1:4938
reverse_proxy @frontend 127.0.0.1:4938
reverse_proxy 127.0.0.1:4937
}