Fix data races across session/forwarder/registry, resolve POST/PUT hang, harden port allocation, add frontendURL env (#157)
Reviewed-on: #157 Co-authored-by: Bagas <bagas@fossy.my.id> Co-committed-by: Bagas <bagas@fossy.my.id>
This commit was merged in pull request #157.
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
type Config interface {
|
||||
Domain() string
|
||||
FrontendURL() string
|
||||
SSHPort() string
|
||||
|
||||
HTTPPort() string
|
||||
@@ -50,6 +51,7 @@ func MustLoad() (Config, error) {
|
||||
}
|
||||
|
||||
func (c *config) Domain() string { return c.domain }
|
||||
func (c *config) FrontendURL() string { return c.frontendURL }
|
||||
func (c *config) SSHPort() string { return c.sshPort }
|
||||
func (c *config) HTTPPort() string { return c.httpPort }
|
||||
func (c *config) HTTPSPort() string { return c.httpsPort }
|
||||
|
||||
Reference in New Issue
Block a user