1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00
This commit is contained in:
ericgaspar 2020-12-06 15:04:29 +01:00
parent 1ee87a1c1d
commit 1f8dc8a12a
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -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)

View file

@ -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