mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: disable access url to get a try.coder.app in dev (#25510)
This commit is contained in:
@@ -705,10 +705,13 @@ func startServer(cfg *devConfig, group *procGroup) error {
|
|||||||
"server",
|
"server",
|
||||||
"--http-address", fmt.Sprintf("0.0.0.0:%d", cfg.apiPort),
|
"--http-address", fmt.Sprintf("0.0.0.0:%d", cfg.apiPort),
|
||||||
"--swagger-enable",
|
"--swagger-enable",
|
||||||
"--access-url", cfg.accessURL,
|
|
||||||
"--dangerous-allow-cors-requests=true",
|
"--dangerous-allow-cors-requests=true",
|
||||||
"--enable-terraform-debug-mode",
|
"--enable-terraform-debug-mode",
|
||||||
}
|
}
|
||||||
|
if cfg.accessURL != "" {
|
||||||
|
// Setting access url to `""` enables a `try.coder.app` url
|
||||||
|
serverArgs = append(serverArgs, "--access-url", cfg.accessURL)
|
||||||
|
}
|
||||||
if cfg.coderMetricsPort != 0 {
|
if cfg.coderMetricsPort != 0 {
|
||||||
serverArgs = append(serverArgs,
|
serverArgs = append(serverArgs,
|
||||||
"--prometheus-enable",
|
"--prometheus-enable",
|
||||||
|
|||||||
Reference in New Issue
Block a user