mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Fix nginx and typo path_url in install and update script
This commit is contained in:
parent
d381bdbab3
commit
aac852a7a0
3 changed files with 11 additions and 12 deletions
|
@ -1,11 +1,10 @@
|
|||
location __PATH__/ {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
proxy_redirect off;
|
||||
|
||||
client_max_body_size 100M;
|
||||
}
|
||||
location __PATH__/ {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
client_max_body_size 100M;
|
||||
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@ cp ../conf/config.production.json "$final_path/config.production.json"
|
|||
#=================================================
|
||||
|
||||
ynh_replace_string "__DOMAIN__" "$domain" "$final_path/config.production.json"
|
||||
ynh_replace_string "__PATH__" "path_url" "$final_path/config.production.json"
|
||||
ynh_replace_string "__PATH__" "$path_url" "$final_path/config.production.json"
|
||||
ynh_replace_string "__DBNAME__" "$db_name" "$final_path/config.production.json"
|
||||
ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/config.production.json"
|
||||
ynh_replace_string "__PORT__" "$port" "$final_path/config.production.json"
|
||||
|
|
|
@ -105,7 +105,7 @@ cp ../conf/config.production.json "$final_path/config.production.json"
|
|||
#=================================================
|
||||
|
||||
ynh_replace_string "__DOMAIN__" "$domain" "$final_path/config.production.json"
|
||||
ynh_replace_string "__PATH__" "path_url" "$final_path/config.production.json"
|
||||
ynh_replace_string "__PATH__" "$path_url" "$final_path/config.production.json"
|
||||
ynh_replace_string "__DBNAME__" "$db_name" "$final_path/config.production.json"
|
||||
ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/config.production.json"
|
||||
ynh_replace_string "__PORT__" "$port" "$final_path/config.production.json"
|
||||
|
|
Loading…
Add table
Reference in a new issue