2018-10-26 09:35:09 -05:00
|
|
|
# Apache2 reverse proxy configuration for Collabora Online / LibreOffice Online
|
|
|
|
# Internet <-- SSL --> Reverse Proxy <-- No SSL --> loolwsd
|
|
|
|
# Make sure that you enable the following Apache2 modules: proxy, proxy_wstunnel, and proxy_http.
|
|
|
|
# Create a virtual host for Collabora Online / LibreOffice Online and include this configuration file.
|
|
|
|
|
|
|
|
Options -Indexes
|
|
|
|
|
|
|
|
# Encoded slashes need to be allowed
|
|
|
|
AllowEncodedSlashes NoDecode
|
|
|
|
|
|
|
|
# keep the host
|
|
|
|
ProxyPreserveHost On
|
|
|
|
|
|
|
|
# static html, js, images, etc. served from loolwsd
|
|
|
|
# loleaflet is the client part of LibreOffice Online
|
|
|
|
ProxyPass /loleaflet http://127.0.0.1:9980/loleaflet retry=0
|
|
|
|
ProxyPassReverse /loleaflet http://127.0.0.1:9980/loleaflet
|
|
|
|
|
|
|
|
# WOPI discovery URL
|
|
|
|
ProxyPass /hosting/discovery http://127.0.0.1:9980/hosting/discovery retry=0
|
|
|
|
ProxyPassReverse /hosting/discovery http://127.0.0.1:9980/hosting/discovery
|
|
|
|
|
2018-11-29 14:57:40 -06:00
|
|
|
# Capabilities
|
|
|
|
ProxyPass /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
|
|
|
|
ProxyPassReverse /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities
|
|
|
|
|
2018-10-26 09:35:09 -05:00
|
|
|
# Main websocket
|
|
|
|
ProxyPassMatch "/lool/(.*)/ws$" ws://127.0.0.1:9980/lool/$1/ws nocanon
|
|
|
|
|
|
|
|
# Admin Console websocket
|
|
|
|
ProxyPass /lool/adminws ws://127.0.0.1:9980/lool/adminws
|
|
|
|
|
|
|
|
# Download as, Fullscreen presentation and Image upload operations
|
|
|
|
ProxyPass /lool http://127.0.0.1:9980/lool
|
|
|
|
ProxyPassReverse /lool http://127.0.0.1:9980/lool
|