From 1f8dc8a12aed806696f00b06db7b2b5d2ab5abed Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Dec 2020 15:04:29 +0100 Subject: [PATCH] Fix --- conf/nginx.conf | 3 ++- scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index cf3b636..5d086cb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,6 +6,7 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } + proxy_pass http://127.0.0.1:__PORT__; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -13,7 +14,7 @@ location __PATH__/ { rewrite ^__PATH__/gogs/(.*) /$1 break; rewrite ^__PATH__/gogs$ /$1 break; - proxy_pass http://localhost:__PORT__; + proxy_read_timeout 90; client_max_body_size 200M; diff --git a/scripts/restore b/scripts/restore index e7f68dc..fa9f062 100644 --- a/scripts/restore +++ b/scripts/restore @@ -29,6 +29,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) +final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) admin=$(ynh_app_setting_get --app=$app --key=adminusername) diff --git a/scripts/upgrade b/scripts/upgrade index daf7ab1..5e0b9e8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,6 +27,7 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) admin=$(ynh_app_setting_get --app=$app --key=adminusername) is_public=$(ynh_app_setting_get --app=$app --key=is_public) port=$(ynh_app_setting_get --app=$app --key=web_port) +architecture=$(ynh_detect_arch) #================================================= # CHECK VERSION