hooks: allow to bind to existing hostname automatically if nothing explicitly is set.

This commit is contained in:
RhodeCode Admin 2023-01-21 14:47:59 +01:00
parent c691bf8c9a
commit 16ca79921f
5 changed files with 31 additions and 14 deletions

View file

@ -645,9 +645,10 @@ vcs.scm_app_implementation = http
; `http` - use http-rpc backend (default)
vcs.hooks.protocol = http
; Host on which this instance is listening for hooks. If vcsserver is in other location
; this should be adjusted.
vcs.hooks.host = 127.0.0.1
; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be
; accessible via network.
; Use vcs.hooks.host = "*" to bind to current hostname (for Docker)
vcs.hooks.host = *
; Start VCSServer with this instance as a subprocess, useful for development
vcs.start_server = false

View file

@ -596,9 +596,10 @@ vcs.scm_app_implementation = http
; `http` - use http-rpc backend (default)
vcs.hooks.protocol = http
; Host on which this instance is listening for hooks. If vcsserver is in other location
; this should be adjusted.
vcs.hooks.host = 127.0.0.1
; Host on which this instance is listening for hooks. vcsserver will call this host to pull/push hooks so it should be
; accessible via network.
; Use vcs.hooks.host = "*" to bind to current hostname (for Docker)
vcs.hooks.host = *
; Start VCSServer with this instance as a subprocess, useful for development
vcs.start_server = false