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

35 lines
890 B
Nginx Configuration File
Raw Normal View History

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
2015-10-17 10:47:21 +02:00
# Path to source
2022-04-13 20:36:45 +02:00
alias __FINALPATH__/galette/webroot/ ;
2018-02-27 22:35:57 +01:00
2019-09-26 22:19:41 +02:00
index index.html index.php;
2015-10-17 10:47:21 +02:00
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
2021-07-23 07:15:34 +02:00
client_max_body_size 50M;
2015-10-17 10:47:21 +02:00
2021-07-22 20:51:13 +02:00
try_files $uri $uri/ @__APP__;
2015-10-17 10:47:21 +02:00
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
2021-07-22 14:10:47 +02:00
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
2018-02-27 22:35:57 +01:00
2015-10-17 10:47:21 +02:00
fastcgi_index index.php;
include fastcgi_params;
2018-02-27 22:35:57 +01:00
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
2015-10-17 10:47:21 +02:00
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
2019-09-26 22:19:41 +02:00
2021-07-22 14:48:40 +02:00
#location ~ __PATH__/(data|config|lib)/ {
# deny all;
# }
2021-07-22 14:32:26 +02:00
2021-06-15 22:26:50 +02:00
location @__APP__ {
2021-07-22 18:17:28 +02:00
rewrite ^(.*)$ __PATH__/index.php last;
2019-09-26 22:19:41 +02:00
}