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:
parent
ddaed7491b
commit
525b738d45
1 changed files with 12 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue