Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Adding gRPC connection variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjosh committed Dec 31, 2020
1 parent f1c983b commit 5747b77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module "api" {
hcaptcha_secret = var.hcaptcha_secret
tls = var.tls
cloudflare = var.cloudflare
grpc = var.grpc
grpc = var.grpc_connection
object_storage = var.object_storage
replica_count = var.api.replica_count
access_control_allow_origin = var.api.access_control_allow_origin
Expand All @@ -52,7 +52,7 @@ module "gateway" {
replica_count = var.gateway.replica_count
debug = var.gateway.debug
env = var.gateway.env
grpc = var.grpc
grpc = var.grpc_connection
user_gateway_domain = var.gateway.user_gateway_domain
theater_gateway_domain = var.gateway.theater_gateway_domain
ingress_controller = var.ingress_controller
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ variable "grpc" {
sensitive = true
}

variable "grpc_connection" {
description = "gRPC connection"
type = object({
host = string
port = number
})
default = {
host = "casty-grpc.casty-grpc.svc.cluster.local"
port = 55283
}
}

variable "oauth_google_secret" {
type = object({
client_id = string
Expand Down

0 comments on commit 5747b77

Please sign in to comment.