mirror of
https://github.com/YunoHost-Apps/psitransfer_ynh.git
synced 2024-09-03 20:16:06 +02:00
Create nginx.conf
This commit is contained in:
parent
d1fc419eed
commit
1e40321765
1 changed files with 15 additions and 0 deletions
15
conf/nginx.conf
Normal file
15
conf/nginx.conf
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:__PORT__/;
|
||||||
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
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;
|
||||||
|
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue