ci: add wildcard support to fly.io wsproxies (#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>
This commit is contained in:
Muhammad Atif Ali
2023-12-13 22:44:04 +03:00
committed by GitHub
co-authored by Dean Sheather
parent b7bdb17460
commit 12f728189c
3 changed files with 13 additions and 10 deletions
+4 -3
View File
@@ -2,16 +2,17 @@ app = "paris-coder"
primary_region = "cdg"
[experimental]
entrypoint = ["/opt/coder", "wsproxy", "server"]
entrypoint = ["/bin/sh", "-c", "CODER_DERP_SERVER_RELAY_URL=\"http://${FLY_PRIVATE_IP}:3000\" /opt/coder wsproxy server"]
auto_rollback = true
[build]
image = "ghcr.io/coder/coder-preview:main"
[env]
CODER_ACCESS_URL = "https://paris-coder.fly.dev"
CODER_ACCESS_URL = "https://paris.fly.dev.coder.com"
CODER_HTTP_ADDRESS = "0.0.0.0:3000"
CODER_PRIMARY_ACCESS_URL = "https://dev.coder.com"
CODER_WILDCARD_ACCESS_URL = "https://*--apps.paris.fly.dev.coder.com"
[http_service]
internal_port = 3000
@@ -21,6 +22,6 @@ primary_region = "cdg"
min_machines_running = 0
[[vm]]
cpu_kind = "shared"
cpu_kind = "performance"
cpus = 1
memory_mb = 512
+5 -4
View File
@@ -2,17 +2,18 @@ app = "sao-paulo-coder"
primary_region = "gru"
[experimental]
entrypoint = ["/opt/coder", "wsproxy", "server"]
entrypoint = ["/bin/sh", "-c", "CODER_DERP_SERVER_RELAY_URL=\"http://${FLY_PRIVATE_IP}:3000\" /opt/coder wsproxy server"]
auto_rollback = true
[build]
image = "ghcr.io/coder/coder-preview:main"
[env]
CODER_ACCESS_URL = "https://sao-paulo-coder.fly.dev"
CODER_ACCESS_URL = "https://sao-paulo.fly.dev.coder.com"
CODER_HTTP_ADDRESS = "0.0.0.0:3000"
CODER_PRIMARY_ACCESS_URL = "https://dev.coder.com"
CODER_WILDCARD_ACCESS_URL = "https://*--apps.sao-paulo.fly.dev.coder.com"
[http_service]
internal_port = 3000
force_https = true
@@ -21,6 +22,6 @@ primary_region = "gru"
min_machines_running = 0
[[vm]]
cpu_kind = "shared"
cpu_kind = "performance"
cpus = 1
memory_mb = 512
+4 -3
View File
@@ -2,16 +2,17 @@ app = "sydney-coder"
primary_region = "syd"
[experimental]
entrypoint = ["/opt/coder", "wsproxy", "server"]
entrypoint = ["/bin/sh", "-c", "CODER_DERP_SERVER_RELAY_URL=\"http://${FLY_PRIVATE_IP}:3000\" /opt/coder wsproxy server"]
auto_rollback = true
[build]
image = "ghcr.io/coder/coder-preview:main"
[env]
CODER_ACCESS_URL = "https://sydney-coder.fly.dev"
CODER_ACCESS_URL = "https://sydney.fly.dev.coder.com"
CODER_HTTP_ADDRESS = "0.0.0.0:3000"
CODER_PRIMARY_ACCESS_URL = "https://dev.coder.com"
CODER_WILDCARD_ACCESS_URL = "https://*--apps.sydney.fly.dev.coder.com"
[http_service]
internal_port = 3000
@@ -21,6 +22,6 @@ primary_region = "syd"
min_machines_running = 0
[[vm]]
cpu_kind = "shared"
cpu_kind = "performance"
cpus = 1
memory_mb = 512