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