mirror of
https://github.com/YunoHost-Apps/pelican_ynh.git
synced 2024-09-03 19:46:35 +02:00
16 lines
339 B
Nginx Configuration File
16 lines
339 B
Nginx Configuration File
root /var/www/pelican/output/;
|
|
|
|
location {LOCATION} {
|
|
alias {DESTDIR}/output;
|
|
|
|
if ($scheme = http) {
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
}
|
|
|
|
try_files $uri.html $uri/;
|
|
|
|
# Deny access to hidden files and directories
|
|
location ~ ^{PATH}/(.+/|)\.(?!well-known\/) {
|
|
deny all;
|
|
}
|
|
}
|