Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
fbe1457d17 |
@ -131,6 +131,9 @@
|
||||
- name: radarr-config
|
||||
path: /srv/volumes/nas-container/radarr
|
||||
read_only: false
|
||||
- name: tdarr-config
|
||||
path: /srv/volumes/nas-container/tdarr
|
||||
read_only: false
|
||||
- name: bazarr-config
|
||||
path: /srv/volumes/nas-container/bazarr
|
||||
read_only: false
|
||||
|
@ -4,7 +4,7 @@ module "authelia" {
|
||||
name = "authelia"
|
||||
instance_count = 2
|
||||
priority = 70
|
||||
image = "authelia/authelia:4.38"
|
||||
image = "authelia/authelia:4.37"
|
||||
args = ["--config", "$${NOMAD_TASK_DIR}/authelia.yml"]
|
||||
ingress = true
|
||||
service_port = 9999
|
||||
@ -172,7 +172,7 @@ resource "nomad_acl_auth_method" "nomad_authelia" {
|
||||
oidc_discovery_url = "https://authelia.${var.base_hostname}"
|
||||
oidc_client_id = module.nomad_oidc_client.client_id
|
||||
oidc_client_secret = module.nomad_oidc_client.secret
|
||||
bound_audiences = [module.nomad_oidc_client.client_id]
|
||||
bound_audiences = ["nomad"]
|
||||
oidc_scopes = [
|
||||
"groups",
|
||||
"openid",
|
||||
@ -190,7 +190,7 @@ resource "nomad_acl_auth_method" "nomad_authelia" {
|
||||
resource "nomad_acl_binding_rule" "nomad_authelia_admin" {
|
||||
description = "engineering rule"
|
||||
auth_method = nomad_acl_auth_method.nomad_authelia.name
|
||||
selector = "\"nomad-admin\" in list.roles"
|
||||
selector = "\"nomad-deploy\" in list.roles"
|
||||
bind_type = "role"
|
||||
bind_name = "admin" # acls.nomad_acl_role.admin.name
|
||||
}
|
||||
|
40
services/tdarr.tf
Normal file
40
services/tdarr.tf
Normal file
@ -0,0 +1,40 @@
|
||||
module "tdarr" {
|
||||
source = "./service"
|
||||
|
||||
name = "tdarr"
|
||||
image = "ghcr.io/haveagitgat/tdarr:latest"
|
||||
image_pull_timeout = "10m"
|
||||
|
||||
ingress = true
|
||||
service_port = 8265
|
||||
|
||||
use_wesher = var.use_wesher
|
||||
|
||||
env = {
|
||||
PGID = 100
|
||||
PUID = 1001
|
||||
TZ = "America/Los_Angeles"
|
||||
|
||||
internalNode = true
|
||||
inContainer = true
|
||||
}
|
||||
|
||||
host_volumes = [
|
||||
{
|
||||
name = "tdarr-config"
|
||||
dest = "/app/configs"
|
||||
read_only = false
|
||||
},
|
||||
{
|
||||
name = "media-write"
|
||||
dest = "/media"
|
||||
read_only = false
|
||||
},
|
||||
{
|
||||
name = "media-overflow-write"
|
||||
dest = "/media-overflow"
|
||||
read_only = false
|
||||
},
|
||||
]
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user