Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
fr:collabora_online [2023/05/29 18:51] – [Configuration] Deed | fr:collabora_online [2023/05/29 19:16] (Version actuelle) – [nginx] Deed | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
<code bash> | <code bash> | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D | sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D | ||
- | sudo echo ' | + | sudo echo ' |
sudo apt update | sudo apt update | ||
sudo apt install coolwsd code-brand | sudo apt install coolwsd code-brand | ||
Ligne 62: | Ligne 62: | ||
</ | </ | ||
- | Votre installation est accessible à https:// | ||
=====nginx====== | =====nginx====== | ||
- | Si on veut qu'il soit accessible depuis le port 443: | + | On utilise un conteneur proxy Nginx: |
<code bash> | <code bash> | ||
+ | server { | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | } | ||
server { | server { | ||
- | | + | listen |
- | server_name | + | |
- | | + | ssl_certificate |
- | ssl_certificate_key /path/to/ssl_certificate_key; | + | |
- | # static files | ||
- | location ^~ /loleaflet { | ||
- | proxy_pass https:// | ||
- | proxy_set_header Host $http_host; | ||
- | } | ||
- | | + | # static files |
- | location ^~ /hosting/ | + | |
- | proxy_pass | + | |
- | proxy_set_header Host $http_host; | + | |
- | } | + | } |
- | | + | # WOPI discovery URL |
- | location ^~ /hosting/capabilities | + | |
- | proxy_pass | + | |
- | proxy_set_header Host $http_host; | + | |
- | } | + | } |
- | | + | # Capabilities |
- | location | + | |
- | proxy_pass | + | |
- | | + | |
- | proxy_set_header Connection " | + | } |
- | | + | |
- | | + | |
- | | + | |
- | | + | # main websocket |
- | location ~ ^/lool { | + | |
- | proxy_pass | + | |
- | proxy_set_header Host $http_host; | + | |
- | } | + | |
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | # download, presentation and image upload | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | # Admin Console websocket | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
- | # Admin Console websocket | ||
- | location ^~ / | ||
- | proxy_pass https:// | ||
- | proxy_set_header Upgrade $http_upgrade; | ||
- | proxy_set_header Connection " | ||
- | proxy_set_header Host $http_host; | ||
- | proxy_read_timeout 36000s; | ||
- | } | ||
} | } | ||
</ | </ | ||
+ | |||
{{tag> | {{tag> |