Advertisement
Guest User

Untitled

a guest
Sep 16th, 2018
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.27 KB | None | 0 0
  1. server {
  2.  
  3.     listen 443 ssl;
  4.  
  5.     server_name office.yourdomain.com;
  6.  
  7.     ssl_certificate /config/keys/letsencrypt/fullchain.pem;
  8.     ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
  9.     ssl_dhparam /config/nginx/dhparams.pem;
  10.     ssl_ciphers 'XXX';
  11.     ssl_prefer_server_ciphers on;
  12.  
  13.     # static files
  14.     location ^~ /loleaflet {
  15.         include /config/nginx/proxy.conf;
  16.         proxy_pass https://xxx.xxx.xx.xx:9980;
  17.     }
  18.  
  19.     # WOPI discovery URL
  20.     location ^~ /hosting/discovery {
  21.         include /config/nginx/proxy.conf;
  22.         proxy_pass https://xxx.xxx.xx.xx:9980;
  23.     }
  24. 
  25.     # main websocket
  26.     location ~ ^/lool/(.*)/ws$ {
  27.         include /config/nginx/proxy.conf;
  28.         proxy_pass https://xxx.xxx.xx.xx:9980;
  29.         proxy_set_header Upgrade $http_upgrade;
  30.         proxy_set_header Connection "Upgrade";
  31.         proxy_set_header Host $http_host;
  32.     }
  33.  
  34.     # download, presentation and image upload
  35.     location ~ ^/lool {
  36.         include /config/nginx/proxy.conf;
  37.         proxy_pass https://xxx.xxx.xx.xx:9980;
  38.     }
  39. 
  40.     # Admin Console websocket
  41.     location ^~ /lool/adminws {
  42.         include /config/nginx/proxy.conf;
  43.         proxy_pass https://xxx.xxx.xx.xx:9980;
  44.         proxy_set_header Upgrade $http_upgrade;
  45.         proxy_set_header Connection "Upgrade";
  46.         proxy_set_header Host $http_host;
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement