add API key + unprotected API ingress for book-search iOS Shortcut
- API_KEY env var from calibre-secrets for /api/download-url auth - SHORTCUT_ICLOUD_URL env var for /shortcut redirect - Separate ingress for /api/download-url and /shortcut (bypasses Authentik)
This commit is contained in:
parent
06490b0634
commit
d41211ddd5
1 changed files with 25 additions and 0 deletions
|
|
@ -727,6 +727,19 @@ resource "kubernetes_deployment" "book_search" {
|
|||
}
|
||||
}
|
||||
}
|
||||
env {
|
||||
name = "API_KEY"
|
||||
value_from {
|
||||
secret_key_ref {
|
||||
name = "calibre-secrets"
|
||||
key = "book_search_api_key"
|
||||
}
|
||||
}
|
||||
}
|
||||
env {
|
||||
name = "SHORTCUT_ICLOUD_URL"
|
||||
value = ""
|
||||
}
|
||||
resources {
|
||||
requests = {
|
||||
cpu = "10m"
|
||||
|
|
@ -809,3 +822,15 @@ module "book_search_ingress" {
|
|||
"gethomepage.dev/pod-selector" = ""
|
||||
}
|
||||
}
|
||||
|
||||
# API ingress - unprotected (API key auth handled by backend)
|
||||
module "book_search_api_ingress" {
|
||||
source = "../../modules/kubernetes/ingress_factory"
|
||||
namespace = kubernetes_namespace.ebooks.metadata[0].name
|
||||
name = "book-search-api"
|
||||
host = "book-search"
|
||||
service_name = "book-search"
|
||||
tls_secret_name = var.tls_secret_name
|
||||
protected = false
|
||||
ingress_path = ["/api/download-url", "/shortcut"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue