summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-07-29 12:26:23 -0700
committerMike Crute <mike@crute.us>2023-07-29 12:26:23 -0700
commit6d867608837f879be2eb934d034f49359f973c84 (patch)
tree5c35ec4d145d95e5a8b52b4fd778a9c906827e31 /app
parent4e995f9e6c3adc43a361b6fa9b976d25378f1594 (diff)
downloadwebsocket_proxy-6d867608837f879be2eb934d034f49359f973c84.tar.bz2
websocket_proxy-6d867608837f879be2eb934d034f49359f973c84.tar.xz
websocket_proxy-6d867608837f879be2eb934d034f49359f973c84.zip
Allow building standalone client
Diffstat (limited to 'app')
-rw-r--r--app/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/config.go b/app/config.go
index 2ffd0cb..2cb2d92 100644
--- a/app/config.go
+++ b/app/config.go
@@ -21,6 +21,7 @@ type Config struct {
21 OauthDevicePollSecs int `flag:"oauth-device-poll-secs" flag-scope:"web" flag-help:"Number of seconds between polls for oauth device flow"` 21 OauthDevicePollSecs int `flag:"oauth-device-poll-secs" flag-scope:"web" flag-help:"Number of seconds between polls for oauth device flow"`
22 OauthSessionTimeout time.Duration `flag:"oauth-session-timelut" flag-scope:"web" flag-help:"Timeout before oauth session expires"` 22 OauthSessionTimeout time.Duration `flag:"oauth-session-timelut" flag-scope:"web" flag-help:"Timeout before oauth session expires"`
23 InviteTimeout time.Duration `flag:"invite-timeout" flag-scope:"register" flag-help:"Timeout before inivitation code expires"` 23 InviteTimeout time.Duration `flag:"invite-timeout" flag-scope:"register" flag-help:"Timeout before inivitation code expires"`
24 ClientHost string `flag:"client-proxy-host" flag-scope:"client" flag-help:"Hostname and port for proxy"`
24} 25}
25 26
26var DefaultConfig = &Config{ 27var DefaultConfig = &Config{
@@ -42,4 +43,5 @@ var DefaultConfig = &Config{
42 OauthDevicePollSecs: 5, 43 OauthDevicePollSecs: 5,
43 OauthSessionTimeout: 5 * time.Minute, 44 OauthSessionTimeout: 5 * time.Minute,
44 InviteTimeout: 1 * time.Hour, 45 InviteTimeout: 1 * time.Hour,
46 ClientHost: "ssh-proxy.crute.me",
45} 47}