1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00
paheko_ynh/conf/nginx.conf
Robles Rodolphe f57e73a4c3
Testing version 1.3.9 (#62)
* add permission auth_header api

* Auto-update READMEs

* upgrade v 1.3.9, syntax in ADMIN.md, try debug api with unprotected

* Auto-update READMEs

* try debug api

* try debug api

* try debug api

* comment yunohost_panel.conf.inc, no sso in this app

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2024-05-17 17:26:13 +02:00

29 lines
770 B
Nginx Configuration File

#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Path to source
alias __INSTALL_DIR__/www/;
index index.php /_route.php;
# Increase size limit
client_max_body_size 50M;
try_files $uri $uri/ __PATH__/__PATH__/_route.php?$query_string;
location ~ \.php$ {
if (!-e $request_filename) {
rewrite ^__PATH__/?(.*)$ __PATH__/_route.php?/$1 last;
break;
}
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
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;
}