Advertisement
Guest User

apache2 collabora config

a guest
Mar 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. <VirtualHost *:443>
  2. ServerName ***
  3. Protocols h2 http/1.1
  4.  
  5. # SSL configuration, you may want to take the easy route instead and use Lets Encrypt!
  6. SSLEngine on
  7. SSLCertificateFile /etc/letsencrypt/live/***/cert.pem
  8. SSLCertificateChainFile /etc/letsencrypt/live/***/chain.pem
  9. SSLCertificateKeyFile /etc/letsencrypt/live/***/privkey.pem
  10. SSLProtocol +TLSv1 +TLSv1.1 +TLSv1.2
  11. SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-$
  12. SSLHonorCipherOrder on
  13.  
  14. # Encoded slashes need to be allowed
  15. AllowEncodedSlashes NoDecode
  16.  
  17. # Container uses a unique non-signed certificate
  18. SSLProxyEngine On
  19. SSLProxyVerify None
  20. SSLProxyCheckPeerCN Off
  21. SSLProxyCheckPeerName Off
  22.  
  23. # keep the host
  24. ProxyPreserveHost On
  25.  
  26. # static html, js, images, etc. served from loolwsd
  27. # loleaflet is the client part of LibreOffice Online
  28. ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
  29. ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
  30.  
  31. # WOPI discovery URL
  32. ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
  33. ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
  34.  
  35. # Main websocket
  36. ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
  37.  
  38. # Admin Console websocket
  39. ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
  40.  
  41. # Download as, Fullscreen presentation and Image upload operations
  42. ProxyPass /lool https://127.0.0.1:9980/lool
  43. ProxyPassReverse /lool https://127.0.0.1:9980/lool
  44.  
  45. # Endpoint with information about availability of various features
  46. ProxyPass /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities retry=0
  47. ProxyPassReverse /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities
  48.  
  49. SetOutputFilter BROTLI_COMPRESS
  50. SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-brotli
  51. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement