1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00
ulogger_ynh/conf/nginx.conf

29 lines
763 B
Nginx Configuration File
Raw Normal View History

2021-01-26 09:03:08 +01:00
location __PATH__/ {
2017-10-22 01:11:59 +02:00
# Path to source
alias __FINALPATH__/ ;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.html index.php;
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
2019-04-05 20:58:52 +02:00
fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;
2017-10-22 01:11:59 +02:00
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}