mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Fix nginx config
This commit is contained in:
parent
1cfd575980
commit
468dbfcda6
1 changed files with 11 additions and 12 deletions
|
@ -1,24 +1,23 @@
|
||||||
location __PATH__/ {
|
location __BASE_API_URL__/ {
|
||||||
proxy_pass http://localhost:__PORT_SYNAPSE__;
|
proxy_pass http://localhost:__PORT_SYNAPSE__;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
client_max_body_size __MAX_UPLOAD_SIZE__;
|
client_max_body_size __MAX_UPLOAD_SIZE__;
|
||||||
|
}
|
||||||
|
|
||||||
# Use the specific path for the php file. It's more secure than global php path
|
# Use the specific path for the php file. It's more secure than global php path
|
||||||
location __PATH__/cas_server.php {
|
location __BASE_API_URL__/cas_server.php {
|
||||||
alias /var/www/__APP__/;
|
alias /var/www/__APP__/;
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/run/php__PHPVERSION__-fpm-__NAME__.sock;
|
fastcgi_pass unix:/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
fastcgi_param REMOTE_USER $remote_user;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_param SCRIPT_FILENAME cas_server.php;
|
fastcgi_param SCRIPT_FILENAME cas_server.php;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location /_synapse/ {
|
location /_synapse/ {
|
||||||
proxy_pass http://localhost:__PORT_SYNAPSE__;
|
proxy_pass http://localhost:__PORT_SYNAPSE__;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
|
Loading…
Reference in a new issue