mirror of
https://github.com/YunoHost-Apps/glpi_ynh.git
synced 2024-09-03 20:36:21 +02:00
update
This commit is contained in:
parent
a256bca240
commit
d1336e8106
2 changed files with 14 additions and 17 deletions
|
@ -1,17 +1,14 @@
|
||||||
location __PATH__/ {
|
root __FINALPATH__/;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
# Path to source
|
location __PATH__/ {
|
||||||
# alias __FINALPATH__/ ;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:3000/;
|
location ~ \.php$ {
|
||||||
proxy_redirect off;
|
include /etc/nginx/fastcgi_params;
|
||||||
proxy_set_header Host $host;
|
try_files $uri =404;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
fastcgi_index index.php;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
proxy_set_header X-Forwarded-Host $server_name;
|
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
}
|
}
|
|
@ -183,7 +183,7 @@ ynh_add_nginx_config
|
||||||
### that really need such authorization.
|
### that really need such authorization.
|
||||||
|
|
||||||
# Set permissions to app files
|
# 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
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Reference in a new issue