Fix http url with reverse proxy activated
This commit is contained in:
parent
1beec497f8
commit
50a726afb9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue