Fix http url with reverse proxy activated

This commit is contained in:
Philippe Caseiro 2015-05-26 17:11:53 +02:00
parent 1beec497f8
commit 50a726afb9
1 changed files with 2 additions and 1 deletions

View File

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