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",
|
||||
"--http-address", fmt.Sprintf("0.0.0.0:%d", cfg.apiPort),
|
||||
"--swagger-enable",
|
||||
"--access-url", cfg.accessURL,
|
||||
"--dangerous-allow-cors-requests=true",
|
||||
"--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 {
|
||||
serverArgs = append(serverArgs,
|
||||
"--prometheus-enable",
|
||||
|
||||
Reference in New Issue
Block a user