mirror of
https://github.com/YunoHost-Apps/mantis_ynh.git
synced 2024-09-03 19:36:33 +02:00
update
This commit is contained in:
parent
118d93e16b
commit
df6caf9bec
1 changed files with 28 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
--------------------- My config
|
||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__/ {
|
||||
|
||||
|
@ -12,3 +13,30 @@ location __PATH__/ {
|
|||
# Include SSOWAT user panel.
|
||||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue