« Collabora CODE » : différence entre les versions

Aller à la navigation Aller à la recherche
159 octets ajoutés ,  12 décembre 2021
Aucun résumé des modifications
Ligne 76 : Ligne 76 :
==Exemple de proxy apache==
==Exemple de proxy apache==


Notez que cette configuration est valide si votre instance Collabora utilise un certificat SSL (autosigné ou non). Reportez vous à https://www.collaboraoffice.com/code/apache-reverse-proxy/ pour les autres cas de figure.
Notez que cette configuration est valide si votre instance Collabora utilise un certificat SSL (autosigné ou non). Reportez vous à https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html pour les autres cas de figure.


<pre>
<pre>
Ligne 89 : Ligne 89 :
   SSLCertificateKeyFile /path/to/private/key
   SSLCertificateKeyFile /path/to/private/key


  # Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
  AllowEncodedSlashes NoDecode
SSLProxyEngine On
ProxyPreserveHost On


  # Container uses a unique non-signed certificate
  SSLProxyEngine On
  SSLProxyVerify None
  SSLProxyCheckPeerCN Off
  SSLProxyCheckPeerName Off


  # keep the host
# cert is issued for collaboraonline.example.com and we proxy to localhost
  ProxyPreserveHost On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off


  # static html, js, images, etc. served from loolwsd
  # loleaflet is the client part of Collabora Online
  ProxyPass          /loleaflet https://192.168.30.30:9980/loleaflet retry=0
  ProxyPassReverse    /loleaflet https://192.168.30.30:9980/loleaflet


  # WOPI discovery URL
# static html, js, images, etc. served from coolwsd
  ProxyPass          /hosting/discovery https://192.168.30.30:9980/hosting/discovery retry=0
# browser is the client part of Collabora Online
  ProxyPassReverse    /hosting/discovery https://192.168.30.30:9980/hosting/discovery
ProxyPass          /browser https://192.168.30.30:9980/browser retry=0
ProxyPassReverse    /browser https://192.168.30.30:9980/browser


  # Capabilities
  ProxyPass          /hosting/capabilities https://192.168.30.30:9980/hosting/capabilities retry=0
  ProxyPassReverse    /hosting/capabilities https://192.168.30.30:9980/hosting/capabilities


  # Main websocket
# WOPI discovery URL
  ProxyPassMatch "/lool/(.*)/ws$" wss://192.168.30.30:9980/lool/$1/ws nocanon
ProxyPass          /hosting/discovery https://192.168.30.30:9980/hosting/discovery retry=0
ProxyPassReverse    /hosting/discovery https://192.168.30.30:9980/hosting/discovery


  # Admin Console websocket
  ProxyPass  /lool/adminws wss://192.168.30.30:9980/lool/adminws


  # Download as, Fullscreen presentation and Image upload operations
# Capabilities
  ProxyPass          /lool https://192.168.30.30:9980/lool
ProxyPass          /hosting/capabilities https://192.168.30.30:9980/hosting/capabilities retry=0
  ProxyPassReverse    /lool https://192.168.30.30:9980/lool
ProxyPassReverse    /hosting/capabilities https://192.168.30.30:9980/hosting/capabilities
 
# Main websocket
ProxyPassMatch      "/cool/(.*)/ws$"      wss://192.168.30.30:9980/cool/$1/ws nocanon
 
# Admin Console websocket
ProxyPass          /cool/adminws wss://192.168.30.30:9980/cool/adminws
 
# Download as, Fullscreen presentation and Image upload operations
ProxyPass          /cool https://192.168.30.30:9980/cool
ProxyPassReverse    /cool https://192.168.30.30:9980/cool
# Compatibility with integrations that use the /lool/convert-to endpoint
ProxyPass          /lool https://192.168.30.30:9980/cool
ProxyPassReverse    /lool https://192.168.30.30:9980/cool
</VirtualHost>
</VirtualHost>
</pre>
</pre>
4 242

modifications

Menu de navigation