mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-17 14:00:01 +02:00
LOCAL_ROOT_URL for workers accessing web service
Local (DMZ) URL for gogs workers (such as ssh update) accessing web service. In most cases you do not need to change default http://localhost:HTTP_PORT/. You may need to alter it only if your ssh server node is not the same as http node, eg. running behind proxy on different node than web server. --- 80 public port -> 8080 -- web server node / public proxy --< \ --- 22 public port -> 10022 -- ssh server node This option is not intended to be accessible via web GUI settings, since it is unlikely someone needs to change it to somethings else than default http://localhost:HTTP_PORT/ which should work for most of the cases. But this should land into the documentation somewhere. fixup
This commit is contained in:
parent
fa5e372f75
commit
b886fb4bf0
2 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,7 @@ var (
|
|||
Protocol Scheme
|
||||
Domain string
|
||||
HttpAddr, HttpPort string
|
||||
LocalUrl string
|
||||
DisableSSH bool
|
||||
StartSSHServer bool
|
||||
SSHDomain string
|
||||
|
@ -300,6 +301,7 @@ func NewContext() {
|
|||
Domain = sec.Key("DOMAIN").MustString("localhost")
|
||||
HttpAddr = sec.Key("HTTP_ADDR").MustString("0.0.0.0")
|
||||
HttpPort = sec.Key("HTTP_PORT").MustString("3000")
|
||||
LocalUrl = sec.Key("LOCAL_ROOT_URL").MustString("http://localhost:" + HttpPort + "/")
|
||||
DisableSSH = sec.Key("DISABLE_SSH").MustBool()
|
||||
if !DisableSSH {
|
||||
StartSSHServer = sec.Key("START_SSH_SERVER").MustBool()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue