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

25 lines
695 B
Nginx Configuration File
Raw Normal View History

2019-01-29 13:27:20 +01:00
location __PATH__/ {
try_files $uri $uri/index.html;
2018-08-22 10:29:02 +02:00
if ($scheme = http) {
2019-01-29 13:27:20 +01:00
rewrite ^ https://$server_name$request_uri? permanent;
}
2018-08-22 10:29:02 +02:00
proxy_pass http://localhost:__PORT__/;
2017-07-04 01:19:07 +02:00
add_header X-Frame-Options SAMEORIGIN;
proxy_set_header Host $host;
2017-04-24 00:55:46 +02:00
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
2017-07-04 01:19:07 +02:00
2017-07-30 21:33:17 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2017-07-04 01:19:07 +02:00
}
## TODO fix in the code so that we don't need this
location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard)$ {
rewrite ^(.*)$ $1/ redirect;
}
2017-04-28 11:34:07 +02:00