File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ app = " jnb-coder"
2
+ primary_region = " jnb"
3
+
4
+ [experimental ]
5
+ entrypoint = [" /bin/sh" , " -c" , " CODER_DERP_SERVER_RELAY_URL=\" http://[${FLY_PRIVATE_IP}]:3000\" /opt/coder wsproxy server" ]
6
+ auto_rollback = true
7
+
8
+ [build ]
9
+ image = " ghcr.io/coder/coder-preview:main"
10
+
11
+ [env ]
12
+ CODER_ACCESS_URL = " https://jnb.fly.dev.coder.com"
13
+ CODER_HTTP_ADDRESS = " 0.0.0.0:3000"
14
+ CODER_PRIMARY_ACCESS_URL = " https://dev.coder.com"
15
+ CODER_WILDCARD_ACCESS_URL = " *--apps.jnb.fly.dev.coder.com"
16
+ CODER_VERBOSE = " true"
17
+
18
+ [http_service ]
19
+ internal_port = 3000
20
+ force_https = true
21
+ auto_stop_machines = true
22
+ auto_start_machines = true
23
+ min_machines_running = 0
24
+
25
+ # Ref: https://fly.io/docs/reference/configuration/#http_service-concurrency
26
+ [http_service .concurrency ]
27
+ type = " requests"
28
+ soft_limit = 50
29
+ hard_limit = 100
30
+
31
+ [[vm ]]
32
+ cpu_kind = " shared"
33
+ cpus = 2
34
+ memory_mb = 512
Original file line number Diff line number Diff line change @@ -856,12 +856,14 @@ jobs:
856
856
flyctl deploy --image "$IMAGE" --app paris-coder --config ./.github/fly-wsproxies/paris-coder.toml --env "CODER_PROXY_SESSION_TOKEN=$TOKEN_PARIS" --yes
857
857
flyctl deploy --image "$IMAGE" --app sydney-coder --config ./.github/fly-wsproxies/sydney-coder.toml --env "CODER_PROXY_SESSION_TOKEN=$TOKEN_SYDNEY" --yes
858
858
flyctl deploy --image "$IMAGE" --app sao-paulo-coder --config ./.github/fly-wsproxies/sao-paulo-coder.toml --env "CODER_PROXY_SESSION_TOKEN=$TOKEN_SAO_PAULO" --yes
859
+ flyctl deploy --image "$IMAGE" --app jnb-coder --config ./.github/fly-wsproxies/jnb-coder.toml --env "CODER_PROXY_SESSION_TOKEN=$TOKEN_JNB" --yes
859
860
env :
860
861
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
861
862
IMAGE : ${{ needs.build.outputs.IMAGE }}
862
863
TOKEN_PARIS : ${{ secrets.FLY_PARIS_CODER_PROXY_SESSION_TOKEN }}
863
864
TOKEN_SYDNEY : ${{ secrets.FLY_SYDNEY_CODER_PROXY_SESSION_TOKEN }}
864
865
TOKEN_SAO_PAULO : ${{ secrets.FLY_SAO_PAULO_CODER_PROXY_SESSION_TOKEN }}
866
+ TOKEN_JNB : ${{ secrets.FLY_JNB_CODER_PROXY_SESSION_TOKEN }}
865
867
866
868
# sqlc-vet runs a postgres docker container, runs Coder migrations, and then
867
869
# runs sqlc-vet to ensure all queries are valid. This catches any mistakes
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ locals {
19
19
" eu-helsinki" = " tcp://reinhard-hel-cdr-dev.tailscale.svc.cluster.local:2375"
20
20
" ap-sydney" = " tcp://hildegard-sydney-cdr-dev.tailscale.svc.cluster.local:2375"
21
21
" sa-saopaulo" = " tcp://oberstein-sao-cdr-dev.tailscale.svc.cluster.local:2375"
22
+ " za-jnb" = " tcp://siegfried-jnb-cdr-dev.tailscale.svc.cluster.local:2375"
22
23
}
23
24
24
25
repo_base_dir = data. coder_parameter . repo_base_dir . value == " ~" ? " /home/coder" : replace (data. coder_parameter . repo_base_dir . value , " /^~\\ //" , " /home/coder/" )
@@ -76,6 +77,11 @@ data "coder_parameter" "region" {
76
77
name = " São Paulo"
77
78
value = " sa-saopaulo"
78
79
}
80
+ option {
81
+ icon = " /emojis/1f1ff-1f1e6.png"
82
+ name = " Johannesburg"
83
+ value = " za-jnb"
84
+ }
79
85
}
80
86
81
87
provider "docker" {
You can’t perform that action at this time.
0 commit comments