move api key to tfvars and change it as it was public [ci skip]

This commit is contained in:
viktorbarzin 2021-05-04 19:11:09 +01:00
parent a9b161b329
commit 300f7c1ea8
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 6 additions and 1 deletions

View file

@ -33,6 +33,7 @@ variable "drone_rpc_secret" {}
variable "oauth_client_id" {}
variable "oauth_client_secret" {}
variable "url_shortener_geolite_license_key" {}
variable "url_shortener_api_key" {}
variable "webhook_handler_fb_verify_token" {}
variable "webhook_handler_fb_page_token" {}
variable "webhook_handler_fb_app_secret" {}
@ -231,4 +232,5 @@ module "kubernetes_cluster" {
idrac_password = var.monitoring_idrac_password
url_shortener_geolite_license_key = var.url_shortener_geolite_license_key
url_shortener_api_key = var.url_shortener_api_key
}

View file

@ -20,6 +20,7 @@ variable "drone_rpc_secret" {}
variable "oauth_client_id" {}
variable "oauth_client_secret" {}
variable "url_shortener_geolite_license_key" {}
variable "url_shortener_api_key" {}
variable "webhook_handler_fb_verify_token" {}
variable "webhook_handler_fb_page_token" {}
variable "webhook_handler_fb_app_secret" {}
@ -186,6 +187,7 @@ module "url" {
source = "./url-shortener"
tls_secret_name = var.tls_secret_name
geolite_license_key = var.url_shortener_geolite_license_key
api_key = var.url_shortener_api_key
}
module "webhook_handler" {

View file

@ -1,5 +1,6 @@
variable "tls_secret_name" {}
variable "geolite_license_key" {}
variable "api_key" {}
variable "domain" {
default = "url.viktorbarzin.me"
}
@ -138,7 +139,7 @@ resource "kubernetes_config_map" "shlink-web" {
"servers.json" = jsonencode([{
name = "Main"
url = "https://url.viktorbarzin.me"
apiKey = "9f0c32d6-605d-480b-ac80-764e122498b5"
apiKey = var.api_key
}])
}
}

Binary file not shown.

Binary file not shown.