1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glpi_ynh.git synced 2024-09-03 20:36:21 +02:00
This commit is contained in:
liberodark 2019-06-30 20:18:27 +02:00
parent a256bca240
commit d1336e8106
2 changed files with 14 additions and 17 deletions

View file

@ -1,17 +1,14 @@
location __PATH__/ {
root __FINALPATH__/;
index index.php;
# Path to source
# alias __FINALPATH__/ ;
location __PATH__/ {
try_files $uri $uri/ /index.php?$args;
}
proxy_pass http://127.0.0.1:3000/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

View file

@ -183,7 +183,7 @@ ynh_add_nginx_config
### that really need such authorization.
# Set permissions to app files
chgrp www-data $final_path/{config,files,files/_{dumps,sessions,cron,graphs,lock,plugins,tmp,rss,uploads,pictures,log}}
chown -R www-data:www-data $final_path
#=================================================
# SETUP SSOWAT