1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00
cryptpad_ynh/conf/nginx.conf
frju365 15c06fd4f3
Testing (#44)
* version 3.2.0

* fix nodejs_version variable in upgrade script (#31) (#32)

* correct a sile config

* Repackage to upstream v.3.18.1 (#40)

* version 3.2.0
* different corrections

* Can't pass Package check with 3.8.1 as pc is build with 3.7. :)

* update to 3.19.0 (#41)

* update to 3.19.0

* new overview

* update to 3.19.1 (#42)

* update to 3.19.0

* new overview

* update v.3.19.1

Co-authored-by: shine <4771718+shinenelson@users.noreply.github.com>
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2020-07-18 11:46:45 +02:00

21 lines
688 B
Nginx Configuration File

location ^~ / {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
more_clear_input_headers 'Accept-Encoding';
}