You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: generate a self-signed certificate if no certificates are specified (coder#5973)
* feat: generate a self-signed certificate if no certificates are specified
Clouds like AWS automatically navigate to https://<ip-here>. This
allows us to bind to that immediately, serve a self-signed certificate,
then reroute to the access URL.
* Add new flag and deprecate old one
* Fix redirect if not using tunnel
* Add deprecation notice
* Fix TLS redirect
* Run `make gen`
* Fix bad test
* Fix gen
Usage: "Whether HTTP requests will be redirected to the access URL (if it's a https URL and TLS is enabled). Requests to local IP addresses are never redirected regardless of this setting.",
cmd.Printf("%s The access URL %s %s, this may cause unexpected problems when creating workspaces. Generate a unique *.try.coder.app URL by not specifying an access URL.\n", cliui.Styles.Warn.Render("Warning:"), cliui.Styles.Field.Render(accessURLParsed.String()), reason)
391
402
}
392
403
393
-
// Redirect from the HTTP listener to the access URL if:
394
-
// 1. The redirect flag is enabled.
395
-
// 2. HTTP listening is enabled (obviously).
396
-
// 3. TLS is enabled (otherwise they're likely using a reverse proxy
397
-
// which can do this instead).
398
-
// 4. The access URL has been set manually (not a tunnel).
Copy file name to clipboardExpand all lines: docs/cli/coder_server.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,8 @@ coder server [flags]
106
106
Consumes $CODER_PROXY_TRUSTED_HEADERS
107
107
--proxy-trusted-origins strings Origin addresses to respect "proxy-trusted-headers". e.g. 192.168.1.0/24
108
108
Consumes $CODER_PROXY_TRUSTED_ORIGINS
109
+
--redirect-to-access-url Specifies whether to redirect requests that do not match the access URL host.
110
+
Consumes $CODER_REDIRECT_TO_ACCESS_URL
109
111
--secure-auth-cookie Controls if the 'Secure' property is set on browser session cookies.
110
112
Consumes $CODER_SECURE_AUTH_COOKIE
111
113
--ssh-keygen-algorithm string The algorithm to use for generating ssh keys. Accepted values are "ed25519", "ecdsa", or "rsa4096".
@@ -134,8 +136,6 @@ coder server [flags]
134
136
Consumes $CODER_TLS_KEY_FILE
135
137
--tls-min-version string Minimum supported version of TLS. Accepted values are "tls10", "tls11", "tls12" or "tls13"
136
138
Consumes $CODER_TLS_MIN_VERSION (default "tls12")
137
-
--tls-redirect-http-to-https Whether HTTP requests will be redirected to the access URL (if it's a https URL and TLS is enabled). Requests to local IP addresses are never redirected regardless of this setting.
138
-
Consumes $CODER_TLS_REDIRECT_HTTP (default true)
139
139
--trace Whether application tracing data is collected. It exports to a backend configured by environment variables. See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md
140
140
Consumes $CODER_TRACE_ENABLE
141
141
--trace-honeycomb-api-key string Enables trace exporting to Honeycomb.io using the provided API Key.
0 commit comments