Von Lars , 1 Monat vorher, geschrieben in Bash.
Einbetten
  1. .conf
  2. server {
  3.     listen       443 ssl;
  4.     server_name  office. domain.tld;
  5.  
  6.     #ssl_certificate /etc/letsencrypt/live/office.domain.tld/fullchain.pem;
  7.     #ssl_certificate_key /etc/letsencrypt/live/office. domain.tld/cert.pem;
  8.     ssl_certificate /etc/letsencrypt/live/office. domain.tld/fullchain.pem;
  9.     ssl_certificate_key /etc/letsencrypt/live/office. domain.tld/privkey.pem;
  10.     ssl_trusted_certificate /etc/letsencrypt/live/office. domain.tld/chain.pem;
  11.     # static files
  12.     location ^~ /loleaflet {
  13.         proxy_pass ;
  14.         proxy_set_header Host $http_host;
  15.     }
  16.  
  17.     # WOPI discovery URL
  18.     location ^~ /hosting/discovery {
  19.         proxy_pass ;
  20.         proxy_set_header Host $http_host;
  21.     }
  22.  
  23.     # Capabilities
  24.     location ^~ /hosting/capabilities {
  25.         proxy_pass ;
  26.         proxy_set_header Host $http_host;
  27.     }
  28.  
  29.     # main websocket
  30.     location ~ ^/lool/(.*)/ws$ {
  31.         proxy_pass ;
  32.         proxy_set_header Upgrade $http_upgrade;
  33.         proxy_set_header Connection "Upgrade";
  34.         proxy_set_header Host $http_host;
  35.         proxy_read_timeout 36000s;
  36.     }
  37.  
  38.     # download, presentation and image upload
  39.     location ~ ^/lool {
  40.         proxy_pass ;
  41.         proxy_set_header Host $http_host;
  42.     }
  43.  
  44.     # Admin Console websocket
  45.     location ^~ /lool/adminws {
  46.         proxy_pass ;
  47.         proxy_set_header Upgrade $http_upgrade;
  48.         proxy_set_header Connection "Upgrade";
  49.         proxy_set_header Host $http_host;
  50.         proxy_read_timeout 36000s;
  51.     }
  52. }
captcha