mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
Update nginx.conf
This commit is contained in:
parent
3a6ace24f5
commit
c52db73eb6
1 changed files with 6 additions and 5 deletions
|
@ -1,8 +1,10 @@
|
||||||
location / {
|
location __PATH__/ {
|
||||||
|
|
||||||
|
try_files $uri $uri/index.html;
|
||||||
|
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy_pass http://localhost:__PORT__/;
|
proxy_pass http://localhost:__PORT__/;
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
@ -20,4 +22,3 @@ location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard)
|
||||||
rewrite ^(.*)$ $1/ redirect;
|
rewrite ^(.*)$ $1/ redirect;
|
||||||
}
|
}
|
||||||
|
|
||||||
try_files $uri $uri/index.html;
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue