mirror of
https://github.com/YunoHost-Apps/pydio_ynh.git
synced 2024-09-03 20:16:05 +02:00
update nginx config according to the docs (#23)
* update nginx config according to the docs * comment
This commit is contained in:
parent
3a92fedbb9
commit
6cae5eff7d
1 changed files with 25 additions and 4 deletions
|
@ -1,13 +1,34 @@
|
|||
# https://pydio.com/en/docs/kb/deployment/running-cells-behind-nginx-reverse-proxy
|
||||
|
||||
# Allow any size file to be uploaded
|
||||
client_max_body_size 0;
|
||||
# Disable buffering
|
||||
proxy_buffering off;
|
||||
|
||||
location / {
|
||||
proxy_pass https://127.0.0.1:__PORT__;
|
||||
|
||||
# Uncomment this to enable gRPC and thus be able to use cells-sync
|
||||
if ($http_content_type = "application/grpc") {
|
||||
grpc_pass grpcs://127.0.0.1:__PORT_GRPC__;
|
||||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
||||
# Enable the websocket
|
||||
location /ws/ {
|
||||
proxy_pass https://127.0.0.1:__PORT__;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_pass https://127.0.0.1:__PORT__;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
|
||||
# Necessary to use Collabora (online edition of office documents)
|
||||
location /cool/ {
|
||||
proxy_pass https://localhost:__PORT__;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
Loading…
Add table
Reference in a new issue