magnetar/.dev/Caddyfile

41 lines
831 B
Caddyfile
Raw Normal View History

2023-10-02 17:05:10 +00:00
magnetar-dev.local {
2023-07-07 19:22:30 +00:00
log {
}
handle /.well-known/host-meta {
reverse_proxy 127.0.0.1:4939
}
2023-07-07 19:22:30 +00:00
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
}
2023-07-07 19:22:30 +00:00
@render_html {
not path /api* /proxy* /files* /avatar* /identicon*
2023-07-07 19:22:30 +00:00
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*
2023-07-07 19:22:30 +00:00
}
reverse_proxy @render_html 127.0.0.1:4938
reverse_proxy @frontend 127.0.0.1:4938
2023-07-07 19:22:30 +00:00
reverse_proxy 127.0.0.1:4937
}