Fix http url with reverse proxy activated
This commit is contained in:
parent
1beec497f8
commit
50a726afb9
|
@ -19,11 +19,12 @@ DOMAIN = localhost
|
||||||
%else
|
%else
|
||||||
%if %%getVar('gogs_web_name', 'X-X-X-X') == 'X-X-X-X'
|
%if %%getVar('gogs_web_name', 'X-X-X-X') == 'X-X-X-X'
|
||||||
DOMAIN = %%adresse_ip_eth0
|
DOMAIN = %%adresse_ip_eth0
|
||||||
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
|
||||||
%else
|
%else
|
||||||
DOMAIN = %%gogs_web_name
|
DOMAIN = %%gogs_web_name
|
||||||
|
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s/
|
||||||
%end if
|
%end if
|
||||||
%end if
|
%end if
|
||||||
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
|
|
||||||
HTTP_ADDR =
|
HTTP_ADDR =
|
||||||
HTTP_PORT = %%git_http_port
|
HTTP_PORT = %%git_http_port
|
||||||
; Disable SSH feature when not available
|
; Disable SSH feature when not available
|
||||||
|
|
Loading…
Reference in New Issue