summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-10-26 16:35:09 +0200
committerAndras Timar <andras.timar@collabora.com>2018-10-27 14:47:45 +0200
commit20e918b73226fd79c6045d67aab623e4ed6732c8 (patch)
tree829c53fb8954d2b8d47e26436b76cef530d443fb /etc
parent2d2e3cf53192918299d24f2ceb5e864e04ebc520 (diff)
service_root is advanced setting, forget it for now in sample configs
Change-Id: I181faaff1eff0d27fa09032f75c03f288b7cad1f
Diffstat (limited to 'etc')
-rw-r--r--etc/apache2/loolwsd-nossl.conf31
-rw-r--r--etc/apache2/loolwsd-nossl.conf.template34
-rw-r--r--etc/apache2/loolwsd-ssl.conf37
-rw-r--r--etc/apache2/loolwsd-ssl.conf.template40
-rw-r--r--etc/nginx/loolwsd-nossl.conf (renamed from etc/nginx/loolwsd-nossl.conf.template)10
-rw-r--r--etc/nginx/loolwsd-ssl.conf (renamed from etc/nginx/loolwsd-ssl.conf.template)10
6 files changed, 78 insertions, 84 deletions
diff --git a/etc/apache2/loolwsd-nossl.conf b/etc/apache2/loolwsd-nossl.conf
new file mode 100644
index 000000000..10b66b47f
--- /dev/null
+++ b/etc/apache2/loolwsd-nossl.conf
@@ -0,0 +1,31 @@
+# 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
+
+ # 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
diff --git a/etc/apache2/loolwsd-nossl.conf.template b/etc/apache2/loolwsd-nossl.conf.template
deleted file mode 100644
index 289b79d3e..000000000
--- a/etc/apache2/loolwsd-nossl.conf.template
+++ /dev/null
@@ -1,34 +0,0 @@
-# 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.
-
-# loolwsd_service_root (introduced in Collabora Online 3.4 and LibreOffce Online 6.2)
-# Prefix all the pages, websockets, etc. with this path.
-
- 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 ${loolwsd_service_root}/loleaflet http://127.0.0.1:9980${loolwsd_service_root}/loleaflet retry=0
- ProxyPassReverse ${loolwsd_service_root}/loleaflet http://127.0.0.1:9980${loolwsd_service_root}/loleaflet
-
- # WOPI discovery URL
- ProxyPass ${loolwsd_service_root}/hosting/discovery http://127.0.0.1:9980${loolwsd_service_root}/hosting/discovery retry=0
- ProxyPassReverse ${loolwsd_service_root}/hosting/discovery http://127.0.0.1:9980${loolwsd_service_root}/hosting/discovery
-
- # Main websocket
- ProxyPassMatch "${loolwsd_service_root}/lool/(.*)/ws$" ws://127.0.0.1:9980${loolwsd_service_root}/lool/$1/ws nocanon
-
- # Admin Console websocket
- ProxyPass ${loolwsd_service_root}/lool/adminws ws://127.0.0.1:9980${loolwsd_service_root}/lool/adminws
-
- # Download as, Fullscreen presentation and Image upload operations
- ProxyPass ${loolwsd_service_root}/lool http://127.0.0.1:9980${loolwsd_service_root}/lool
- ProxyPassReverse ${loolwsd_service_root}/lool http://127.0.0.1:9980${loolwsd_service_root}/lool
diff --git a/etc/apache2/loolwsd-ssl.conf b/etc/apache2/loolwsd-ssl.conf
new file mode 100644
index 000000000..324ad445d
--- /dev/null
+++ b/etc/apache2/loolwsd-ssl.conf
@@ -0,0 +1,37 @@
+# Apache2 reverse proxy configuration for Collabora Online / LibreOffice Online
+# Internet <-- SSL --> Reverse Proxy <-- SSL --> loolwsd
+# Make sure that you enable the following Apache2 modules: proxy, proxy_wstunnel, proxy_http, and ssl.
+# Create a virtual host for Collabora Online / LibreOffice Online and include this configuration file.
+
+ Options -Indexes
+
+ # Encoded slashes need to be allowed
+ AllowEncodedSlashes NoDecode
+
+ # in most configurations loolwsd uses a self-signed certificate
+ SSLProxyEngine On
+ SSLProxyVerify None
+ SSLProxyCheckPeerCN Off
+ SSLProxyCheckPeerName Off
+
+ # keep the host
+ ProxyPreserveHost On
+
+ # static html, js, images, etc. served from loolwsd
+ # loleaflet is the client part of LibreOffice Online
+ ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
+ ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
+
+ # WOPI discovery URL
+ ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
+ ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
+
+ # Main websocket
+ ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
+
+ # Admin Console websocket
+ ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
+
+ # Download as, Fullscreen presentation and Image upload operations
+ ProxyPass /lool https://127.0.0.1:9980/lool
+ ProxyPassReverse /lool https://127.0.0.1:9980/lool
diff --git a/etc/apache2/loolwsd-ssl.conf.template b/etc/apache2/loolwsd-ssl.conf.template
deleted file mode 100644
index 63e128028..000000000
--- a/etc/apache2/loolwsd-ssl.conf.template
+++ /dev/null
@@ -1,40 +0,0 @@
-# Apache2 reverse proxy configuration for Collabora Online / LibreOffice Online
-# Internet <-- SSL --> Reverse Proxy <-- SSL --> loolwsd
-# Make sure that you enable the following Apache2 modules: proxy, proxy_wstunnel, proxy_http, and ssl.
-# Create a virtual host for Collabora Online / LibreOffice Online and include this configuration file.
-
-# loolwsd_service_root (introduced in Collabora Online 3.4 and LibreOffce Online 6.2)
-# Prefix all the pages, websockets, etc. with this path.
-
- Options -Indexes
-
- # Encoded slashes need to be allowed
- AllowEncodedSlashes NoDecode
-
- # in most configurations loolwsd uses a unique non-signed certificate
- SSLProxyEngine On
- SSLProxyVerify None
- SSLProxyCheckPeerCN Off
- SSLProxyCheckPeerName Off
-
- # keep the host
- ProxyPreserveHost On
-
- # static html, js, images, etc. served from loolwsd
- # loleaflet is the client part of LibreOffice Online
- ProxyPass ${loolwsd_service_root}/loleaflet https://127.0.0.1:9980${loolwsd_service_root}/loleaflet retry=0
- ProxyPassReverse ${loolwsd_service_root}/loleaflet https://127.0.0.1:9980${loolwsd_service_root}/loleaflet
-
- # WOPI discovery URL
- ProxyPass ${loolwsd_service_root}/hosting/discovery https://127.0.0.1:9980${loolwsd_service_root}/hosting/discovery retry=0
- ProxyPassReverse ${loolwsd_service_root}/hosting/discovery https://127.0.0.1:9980${loolwsd_service_root}/hosting/discovery
-
- # Main websocket
- ProxyPassMatch "${loolwsd_service_root}/lool/(.*)/ws$" wss://127.0.0.1:9980${loolwsd_service_root}/lool/$1/ws nocanon
-
- # Admin Console websocket
- ProxyPass ${loolwsd_service_root}/lool/adminws wss://127.0.0.1:9980${loolwsd_service_root}/lool/adminws
-
- # Download as, Fullscreen presentation and Image upload operations
- ProxyPass ${loolwsd_service_root}/lool https://127.0.0.1:9980${loolwsd_service_root}/lool
- ProxyPassReverse ${loolwsd_service_root}/lool https://127.0.0.1:9980${loolwsd_service_root}/lool
diff --git a/etc/nginx/loolwsd-nossl.conf.template b/etc/nginx/loolwsd-nossl.conf
index bcadf278a..f55f8829b 100644
--- a/etc/nginx/loolwsd-nossl.conf.template
+++ b/etc/nginx/loolwsd-nossl.conf
@@ -1,17 +1,17 @@
# static files
- location ^~ ${loolwsd_service_root}/loleaflet {
+ location ^~ /loleaflet {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
- location ^~ ${loolwsd_service_root}/hosting/discovery {
+ location ^~ /hosting/discovery {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# main websocket
- location ~ ^${loolwsd_service_root}/lool/(.*)/ws$ {
+ location ~ ^/lool/(.*)/ws$ {
proxy_pass http://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
@@ -20,13 +20,13 @@
}
# download, presentation and image upload
- location ~ ^${loolwsd_service_root}/lool {
+ location ~ ^/lool {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
- location ^~ ${loolwsd_service_root}/lool/adminws {
+ location ^~ /lool/adminws {
proxy_pass http://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
diff --git a/etc/nginx/loolwsd-ssl.conf.template b/etc/nginx/loolwsd-ssl.conf
index 1190fb54c..279f23a5b 100644
--- a/etc/nginx/loolwsd-ssl.conf.template
+++ b/etc/nginx/loolwsd-ssl.conf
@@ -1,18 +1,18 @@
# static files
- location ^~ ${loolwsd_service_root}/loleaflet {
+ location ^~ /loleaflet {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
- location ^~ ${loolwsd_service_root}/hosting/discovery {
+ location ^~ /hosting/discovery {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# main websocket
- location ~ ^${loolwsd_service_root}/lool/(.*)/ws$ {
+ location ~ ^/lool/(.*)/ws$ {
proxy_pass https://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
@@ -21,13 +21,13 @@
}
# download, presentation and image upload
- location ~ ^${loolwsd_service_root}/lool {
+ location ~ ^/lool {
proxy_pass https://localhost:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
- location ^~ ${loolwsd_service_root}/lool/adminws {
+ location ^~ /lool/adminws {
proxy_pass https://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";