1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
bookstack_ynh/conf/nginx.conf

20 lines
471 B
Nginx Configuration File
Raw Normal View History

2019-07-29 21:22:59 +02:00
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2019-07-29 21:13:34 +02:00
root /var/www/bookstack/public;
index index.php index.html;
2019-07-29 19:50:23 +02:00
location __PATH__/ {
2019-07-29 21:13:34 +02:00
try_files $uri $uri/ /index.php?$query_string;
}
2019-07-29 19:50:23 +02:00
2019-07-29 21:13:34 +02:00
location ~ \.php$ {
fastcgi_index index.php;
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
2019-07-29 19:50:23 +02:00
}