1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jeedom_ynh.git synced 2024-09-03 19:26:26 +02:00
jeedom_ynh/conf/nginx.conf
2024-05-21 11:19:51 +02:00

62 lines
1.3 KiB
Nginx Configuration File

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source
alias __INSTALL_DIR__/;
index index.php;
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_read_timeout 300;
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;
}
location ~ ^__PATH__/tmp/(.*)$ {
deny all;
}
location ~ ^__PATH__/log/(.*)$ {
deny all;
}
location ~ ^__PATH__/backup/(.*)$ {
deny all;
}
location ~ ^__PATH__/.sql$ {
deny all;
}
location ~ ^__PATH__/.tar$ {
deny all;
}
location ~ ^__PATH__/.gz$ {
deny all;
}
location ~ ^__PATH__/(.*)ini$ {
deny all;
}
location ~ ^__PATH__/core/config/version$ {
deny all;
}