1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pelican_ynh.git synced 2024-09-03 19:46:35 +02:00

Update nginx.conf

This commit is contained in:
Ylies Chahi 2017-08-13 01:34:40 +02:00 committed by GitHub
parent ddaed7491b
commit 525b738d45

View file

@ -1,15 +1,17 @@
location {LOCATION} {
alias {DESTDIR}/output/;
index index.html
location YNH_LOCATION {
alias YNH_DOCUMENT_ROOT/output;
# Force HTTPS
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.html index.htm;
default_type text/html;
try_files $uri $uri.html $uri/ =404;
# Deny access to hidden files and directories
location ~ ^{PATH}/(.+/|)\.(?!well-known\/) {
deny all;
}
# Include SSOWAT user panel.
# Include SSOwat user panel.
include conf.d/yunohost_panel.conf.inc;
}