-
Notifications
You must be signed in to change notification settings - Fork 278
feat(dashboard-api): supabase auth users sync background runner #2247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c50d248
68a6265
9d8fe63
1e5f28b
56154df
3a431aa
eb69678
bb9fa39
461d2ec
ce0cbd1
4d622ce
84ecd06
3f56979
386d0c6
3e3fa3c
5e0972b
6b5a5c8
1113654
fb0afd4
bd4dd80
97e305a
c98878f
e314b96
db124a4
0e7f147
eed510b
8226f67
8485d7a
37f842f
c0b1102
87ef8f0
45a7ccb
638429a
07d4c25
bd1ebb1
126d984
d4ba4c2
2ac1f83
da28e6a
1512ede
d25d531
fe217ea
40a5cd0
c25caba
18f7839
9667b77
37eb463
c5d82f0
e4d5bff
4862139
4ecc627
29bbf59
48a620c
2eda1d4
bb31094
2a2311a
11d0f0f
1dc74e1
1359257
15291ac
2c86213
fbb8835
1838a3b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,35 @@ | ||
| locals { | ||
| base_env = { | ||
| GIN_MODE = "release" | ||
| ENVIRONMENT = var.environment | ||
| POSTGRES_CONNECTION_STRING = var.postgres_connection_string | ||
| AUTH_DB_CONNECTION_STRING = var.auth_db_connection_string | ||
| AUTH_DB_READ_REPLICA_CONNECTION_STRING = var.auth_db_read_replica_connection_string | ||
| SUPABASE_DB_CONNECTION_STRING = var.supabase_db_connection_string | ||
| CLICKHOUSE_CONNECTION_STRING = var.clickhouse_connection_string | ||
| SUPABASE_JWT_SECRETS = var.supabase_jwt_secrets | ||
| REDIS_URL = var.redis_url | ||
| REDIS_CLUSTER_URL = var.redis_cluster_url | ||
| REDIS_TLS_CA_BASE64 = var.redis_tls_ca_base64 | ||
| ENABLE_AUTH_USER_SYNC_BACKGROUND_WORKER = tostring(var.enable_auth_user_sync_background_worker) | ||
| OTEL_COLLECTOR_GRPC_ENDPOINT = "localhost:${var.otel_collector_grpc_port}" | ||
| LOGS_COLLECTOR_ADDRESS = "http://localhost:${var.logs_proxy_port.port}" | ||
| } | ||
| } | ||
|
|
||
| resource "nomad_job" "dashboard_api" { | ||
| jobspec = templatefile("${path.module}/jobs/dashboard-api.hcl", { | ||
| update_stanza = var.update_stanza | ||
| node_pool = var.node_pool | ||
| image_name = var.image | ||
| environment = var.environment | ||
|
|
||
| count = var.count_instances | ||
|
|
||
| memory_mb = 512 | ||
| cpu_count = 1 | ||
|
|
||
| postgres_connection_string = var.postgres_connection_string | ||
| auth_db_connection_string = var.auth_db_connection_string | ||
| auth_db_read_replica_connection_string = var.auth_db_read_replica_connection_string | ||
| clickhouse_connection_string = var.clickhouse_connection_string | ||
| supabase_jwt_secrets = var.supabase_jwt_secrets | ||
| redis_url = var.redis_url | ||
| redis_cluster_url = var.redis_cluster_url | ||
| redis_tls_ca_base64 = var.redis_tls_ca_base64 | ||
| env = local.base_env | ||
|
|
||
| subdomain = "dashboard-api" | ||
|
|
||
| otel_collector_grpc_endpoint = "localhost:${var.otel_collector_grpc_port}" | ||
| logs_collector_address = "http://localhost:${var.logs_proxy_port.port}" | ||
| }) | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.