1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# apache2 configuration example for snac2
# requires modules: proxy, proxy_http
# Main web access point
<Location /social>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/social
</Location>
# WebFinger
<Location /.well-known/webfinger>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/webfinger
</Location>
# NodeInfo (optional)
<Location /.well-known/nodeinfo>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
</Location>
# Mastodon API (entry points)
<Location /api/v1/>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/api/v1/
</Location>
<Location /api/v2/>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/api/v2/
</Location>
# Mastodon API (OAuth support)
<Location /oauth>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/oauth
</Location>
# host-meta (optional, needed for some Mastodon API clients)
<Location /.well-known/host-meta>
ProxyPreserveHost On
ProxyPass http://127.0.0.1:8001/.well-known/host-meta
</Location>
|