22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
# Add inside your SSL VirtualHost include for your domain.
|
|
# Keep your existing main DocumentRoot unchanged when hosting Chat Grid under /chgrid.
|
|
# Required modules: proxy, proxy_http, proxy_wstunnel
|
|
# Optional but recommended modules for client update freshness: headers, setenvif
|
|
|
|
# Proxy websocket signaling endpoint to local Python service.
|
|
# `/ws` is used by the browser signaling client for realtime packets.
|
|
ProxyPass /ws ws://127.0.0.1:8765
|
|
ProxyPassReverse /ws ws://127.0.0.1:8765
|
|
# Proxy auth cookie helper endpoints to local Python service.
|
|
# These root-scoped paths are required even when the app is hosted under `/chgrid`.
|
|
# The client calls `/auth/session/set` after login and `/auth/session/clear` on logout/session-reset.
|
|
ProxyPass /auth/session/ http://127.0.0.1:8765/auth/session/
|
|
ProxyPassReverse /auth/session/ http://127.0.0.1:8765/auth/session/
|
|
|
|
# Ensure HTML entrypoint is never cached so version updates are picked up quickly.
|
|
<LocationMatch "^/chgrid/?$|^/chgrid/index\\.html$">
|
|
Header set Cache-Control "no-store, no-cache, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "0"
|
|
</LocationMatch>
|