[ci skip] Configure f1-stream: WebAuthn, NFS storage, headless browser
- Set WEBAUTHN_RPID/ORIGIN for f1.viktorbarzin.me domain - Add NFS volume at /mnt/main/f1-stream for persistent session/stream data - Enable headless browser extraction (HEADLESS_EXTRACT_ENABLED=true) - Reduce replicas to 1 (file-based sessions don't work across replicas)
This commit is contained in:
parent
a5e0b19a3a
commit
2fe7fa547c
2 changed files with 28 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ resource "kubernetes_deployment" "f1-stream" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 3
|
replicas = 1
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "f1-stream"
|
app = "f1-stream"
|
||||||
|
|
@ -49,6 +49,33 @@ resource "kubernetes_deployment" "f1-stream" {
|
||||||
port {
|
port {
|
||||||
container_port = 8080
|
container_port = 8080
|
||||||
}
|
}
|
||||||
|
env {
|
||||||
|
name = "WEBAUTHN_RPID"
|
||||||
|
value = "f1.viktorbarzin.me"
|
||||||
|
}
|
||||||
|
env {
|
||||||
|
name = "WEBAUTHN_ORIGIN"
|
||||||
|
value = "https://f1.viktorbarzin.me"
|
||||||
|
}
|
||||||
|
env {
|
||||||
|
name = "WEBAUTHN_DISPLAY_NAME"
|
||||||
|
value = "F1 Stream"
|
||||||
|
}
|
||||||
|
env {
|
||||||
|
name = "HEADLESS_EXTRACT_ENABLED"
|
||||||
|
value = "true"
|
||||||
|
}
|
||||||
|
volume_mount {
|
||||||
|
name = "data"
|
||||||
|
mount_path = "/data"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
volume {
|
||||||
|
name = "data"
|
||||||
|
nfs {
|
||||||
|
server = "10.0.10.15"
|
||||||
|
path = "/mnt/main/f1-stream"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue