Skip to content

Commit 12f7281

Browse files
ci: add wildcard support to fly.io wsproxies (coder#11188)
* ci: add wildcard support to fly.io wsproxies * Update sao-paulo-coder.toml * Update sydney-coder.toml * Update paris-coder.toml * Apply suggestions from code review Co-authored-by: Dean Sheather <dean@deansheather.com> * Update .github/fly-wsproxies/sao-paulo-coder.toml Co-authored-by: Dean Sheather <dean@deansheather.com> * Update sao-paulo-coder.toml * Update sydney-coder.toml --------- Co-authored-by: Dean Sheather <dean@deansheather.com>
1 parent b7bdb17 commit 12f7281

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/fly-wsproxies/paris-coder.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ app = "paris-coder"
22
primary_region = "cdg"
33

44
[experimental]
5-
entrypoint = ["/opt/coder", "wsproxy", "server"]
5+
entrypoint = ["/bin/sh", "-c", "CODER_DERP_SERVER_RELAY_URL=\"http://${FLY_PRIVATE_IP}:3000\" /opt/coder wsproxy server"]
66
auto_rollback = true
77

88
[build]
99
image = "ghcr.io/coder/coder-preview:main"
1010

1111
[env]
12-
CODER_ACCESS_URL = "https://paris-coder.fly.dev"
12+
CODER_ACCESS_URL = "https://paris.fly.dev.coder.com"
1313
CODER_HTTP_ADDRESS = "0.0.0.0:3000"
1414
CODER_PRIMARY_ACCESS_URL = "https://dev.coder.com"
15+
CODER_WILDCARD_ACCESS_URL = "https://*--apps.paris.fly.dev.coder.com"
1516

1617
[http_service]
1718
internal_port = 3000
@@ -21,6 +22,6 @@ primary_region = "cdg"
2122
min_machines_running = 0
2223

2324
[[vm]]
24-
cpu_kind = "shared"
25+
cpu_kind = "performance"
2526
cpus = 1
2627
memory_mb = 512

.github/fly-wsproxies/sao-paulo-coder.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ app = "sao-paulo-coder"
22
primary_region = "gru"
33

44
[experimental]
5-
entrypoint = ["/opt/coder", "wsproxy", "server"]
5+
entrypoint = ["/bin/sh", "-c", "CODER_DERP_SERVER_RELAY_URL=\"http://${FLY_PRIVATE_IP}:3000\" /opt/coder wsproxy server"]
66
auto_rollback = true
77

88
[build]
99
image = "ghcr.io/coder/coder-preview:main"
1010

1111
[env]
12-
CODER_ACCESS_URL = "https://sao-paulo-coder.fly.dev"
12+
CODER_ACCESS_URL = "https://sao-paulo.fly.dev.coder.com"
1313
CODER_HTTP_ADDRESS = "0.0.0.0:3000"
1414
CODER_PRIMARY_ACCESS_URL = "https://dev.coder.com"
15-
15+
CODER_WILDCARD_ACCESS_URL = "https://*--apps.sao-paulo.fly.dev.coder.com"
16+
1617
[http_service]
1718
internal_port = 3000
1819
force_https = true
@@ -21,6 +22,6 @@ primary_region = "gru"
2122
min_machines_running = 0
2223

2324
[[vm]]
24-
cpu_kind = "shared"
25+
cpu_kind = "performance"
2526
cpus = 1
2627
memory_mb = 512

.github/fly-wsproxies/sydney-coder.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ app = "sydney-coder"
22
primary_region = "syd"
33

44
[experimental]
5-
entrypoint = ["/opt/coder", "wsproxy", "server"]
5+
entrypoint = ["/bin/sh", "-c", "CODER_DERP_SERVER_RELAY_URL=\"http://${FLY_PRIVATE_IP}:3000\" /opt/coder wsproxy server"]
66
auto_rollback = true
77

88
[build]
99
image = "ghcr.io/coder/coder-preview:main"
1010

1111
[env]
12-
CODER_ACCESS_URL = "https://sydney-coder.fly.dev"
12+
CODER_ACCESS_URL = "https://sydney.fly.dev.coder.com"
1313
CODER_HTTP_ADDRESS = "0.0.0.0:3000"
1414
CODER_PRIMARY_ACCESS_URL = "https://dev.coder.com"
15+
CODER_WILDCARD_ACCESS_URL = "https://*--apps.sydney.fly.dev.coder.com"
1516

1617
[http_service]
1718
internal_port = 3000
@@ -21,6 +22,6 @@ primary_region = "syd"
2122
min_machines_running = 0
2223

2324
[[vm]]
24-
cpu_kind = "shared"
25+
cpu_kind = "performance"
2526
cpus = 1
2627
memory_mb = 512

0 commit comments

Comments
 (0)