summaryrefslogtreecommitdiffstats
path: root/conf/app.ini
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-02 18:54:48 +0800
committerUnknwon <u@gogs.io>2016-07-02 18:54:48 +0800
commit6aa00f7bcf707a103df1b5ef5976da01a3838a13 (patch)
tree188e4c6f511c1166867bcff300bdf51661c48c13 /conf/app.ini
parentf485fcde96d1a0d2cf9d8aa8cc1fc3b9401ae578 (diff)
downloadgitea-6aa00f7bcf707a103df1b5ef5976da01a3838a13.tar.gz
gitea-6aa00f7bcf707a103df1b5ef5976da01a3838a13.zip
#2968 use HTTP_ADDR to replace localhost
Diffstat (limited to 'conf/app.ini')
-rw-r--r--conf/app.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/app.ini b/conf/app.ini
index f226996f2d..d99b04cc5d 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -53,12 +53,12 @@ CUSTOM_URL_SCHEMES =
PROTOCOL = http
DOMAIN = localhost
ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
-HTTP_ADDR =
+HTTP_ADDR = 0.0.0.0
HTTP_PORT = 3000
; Local (DMZ) URL for Gogs workers (such as SSH update) accessing web service.
; In most cases you do not need to change the default value.
; Alter it only if your SSH server node is not the same as HTTP node.
-LOCAL_ROOT_URL = %(PROTOCOL)s://localhost:%(HTTP_PORT)s/
+LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
; Disable SSH feature when not available
DISABLE_SSH = false
; Whether use builtin SSH server or not.