1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mantis_ynh.git synced 2024-09-03 19:36:33 +02:00
This commit is contained in:
liberodark 2019-02-12 01:35:25 +01:00
parent 118d93e16b
commit df6caf9bec

View file

@ -1,3 +1,4 @@
--------------------- My config
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
@ -12,3 +13,30 @@ location __PATH__/ {
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }
--------------------- Mantis config
location __PATH__/ {
alias /usr/local/www/mantis/;
# the following two locations (images|javascript) make nginx to
# - cache static content
# - disable logging for static content
# TODO: should be regex-combined into one location
location /mantis/images/ {
alias /var/www/mantis/images/;
access_log off;
expires 5d;
}
location /mantis/javascript/ {
alias /var/www/mantis/javascript/;
access_log off;
expires 5d;
}
location ~ /mantis/.*\.php$ {
root /var/www/;
try_files $uri =404;
include fastcgi_params;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:///var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}