From 50a726afb9060cad879bc3b51be38673aa8fe640 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Tue, 26 May 2015 17:11:53 +0200 Subject: [PATCH] Fix http url with reverse proxy activated --- tmpl/gogs.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmpl/gogs.conf b/tmpl/gogs.conf index 4e7b88a..aee5990 100644 --- a/tmpl/gogs.conf +++ b/tmpl/gogs.conf @@ -19,11 +19,12 @@ DOMAIN = localhost %else %if %%getVar('gogs_web_name', 'X-X-X-X') == 'X-X-X-X' DOMAIN = %%adresse_ip_eth0 +ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ %else DOMAIN = %%gogs_web_name +ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s/ %end if %end if -ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ HTTP_ADDR = HTTP_PORT = %%git_http_port ; Disable SSH feature when not available