feat(api): add /sync-from-legacy route

This commit is contained in:
41666 2021-03-21 21:34:06 -04:00
parent a983492154
commit 28d573043d
15 changed files with 260 additions and 6 deletions

View file

@ -30,6 +30,12 @@ variable "bot_client_secret" {
sensitive = true
}
variable "bot_import_token" {
type = string
description = "Bot Import Token"
sensitive = true
}
variable "bot_token" {
type = string
description = "Bot Client Secret"

View file

@ -44,6 +44,11 @@ resource "cloudflare_worker_script" "backend" {
text = var.bot_token
}
secret_text_binding {
name = "BOT_IMPORT_TOKEN"
text = var.bot_import_token
}
plain_text_binding {
name = "UI_PUBLIC_URI"
text = var.ui_public_uri