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

Commit

Permalink
add authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
macadock committed Oct 4, 2024
1 parent 9e18383 commit 8dd797a
Show file tree
Hide file tree
Showing 7 changed files with 1,670 additions and 1,635 deletions.
9 changes: 7 additions & 2 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ resource "cloudflare_workers_script" "ddns-update-worker" {
}

secret_text_binding {
name = "API_KEY"
text = var.API_KEY
name = "USERNAME"
text = var.USERNAME
}

secret_text_binding {
name = "PASSWORD"
text = var.PASSWORD
}
}

Expand Down
6 changes: 5 additions & 1 deletion infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ variable "CLOUDFLARE_ACCOUNT_ID" {
type = string
}

variable "API_KEY" {
variable "USERNAME" {
type = string
}

variable "PASSWORD" {
type = string
}
Loading

0 comments on commit 8dd797a

Please sign in to comment.