2026-02-25 00:31:23 -05:00
|
|
|
# Add inside your SSL VirtualHost include for your domain.
|
2026-02-20 08:16:43 -05:00
|
|
|
# Keep your existing main DocumentRoot unchanged when hosting Chat Grid under /chgrid.
|
|
|
|
|
# Required modules: proxy, proxy_http, proxy_wstunnel
|
2026-02-22 18:57:40 -05:00
|
|
|
# Optional but recommended modules for client update freshness: headers, setenvif
|
2026-03-08 20:51:50 -04:00
|
|
|
# Set the public browser origin for websocket and media-proxy origin checks.
|
|
|
|
|
# Example:
|
|
|
|
|
# SetEnv CHGRID_HOST_ORIGIN https://example.com
|
2026-02-20 08:16:43 -05:00
|
|
|
|
|
|
|
|
# Proxy websocket signaling endpoint to local Python service.
|
2026-03-08 22:24:32 -04:00
|
|
|
# Replace `/chgrid/` with the same value configured in `server.base_path`.
|
|
|
|
|
ProxyPass /chgrid/ws ws://127.0.0.1:8765/chgrid/ws
|
|
|
|
|
ProxyPassReverse /chgrid/ws ws://127.0.0.1:8765/chgrid/ws
|
2026-03-02 00:11:49 -05:00
|
|
|
# Proxy auth cookie helper endpoints to local Python service.
|
2026-03-08 22:24:32 -04:00
|
|
|
# These paths should live under the same instance base path.
|
|
|
|
|
ProxyPass /chgrid/auth/session/ http://127.0.0.1:8765/chgrid/auth/session/
|
|
|
|
|
ProxyPassReverse /chgrid/auth/session/ http://127.0.0.1:8765/chgrid/auth/session/
|
2026-02-22 18:57:40 -05:00
|
|
|
|
|
|
|
|
# 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>
|