Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
908d960f94 | |||
32e34db160 |
@ -95,9 +95,6 @@
|
|||||||
- name: media-read
|
- name: media-read
|
||||||
path: /srv/volumes/media-write
|
path: /srv/volumes/media-write
|
||||||
read_only: true
|
read_only: true
|
||||||
- name: media-overflow-read
|
|
||||||
path: /srv/volumes/nas-overflow/Media
|
|
||||||
read_only: true
|
|
||||||
- name: media-write
|
- name: media-write
|
||||||
path: /srv/volumes/media-write
|
path: /srv/volumes/media-write
|
||||||
owner: "root"
|
owner: "root"
|
||||||
@ -134,9 +131,6 @@
|
|||||||
- name: radarr-config
|
- name: radarr-config
|
||||||
path: /srv/volumes/nas-container/radarr
|
path: /srv/volumes/nas-container/radarr
|
||||||
read_only: false
|
read_only: false
|
||||||
- name: jellyfin-config
|
|
||||||
path: /srv/volumes/nas-container/jellyfin
|
|
||||||
read_only: false
|
|
||||||
- name: bazarr-config
|
- name: bazarr-config
|
||||||
path: /srv/volumes/nas-container/bazarr
|
path: /srv/volumes/nas-container/bazarr
|
||||||
read_only: false
|
read_only: false
|
||||||
|
@ -4,7 +4,7 @@ module "authelia" {
|
|||||||
name = "authelia"
|
name = "authelia"
|
||||||
instance_count = 2
|
instance_count = 2
|
||||||
priority = 70
|
priority = 70
|
||||||
image = "authelia/authelia:4.37"
|
image = "authelia/authelia:4.38"
|
||||||
args = ["--config", "$${NOMAD_TASK_DIR}/authelia.yml"]
|
args = ["--config", "$${NOMAD_TASK_DIR}/authelia.yml"]
|
||||||
ingress = true
|
ingress = true
|
||||||
service_port = 9999
|
service_port = 9999
|
||||||
@ -172,7 +172,7 @@ resource "nomad_acl_auth_method" "nomad_authelia" {
|
|||||||
oidc_discovery_url = "https://authelia.${var.base_hostname}"
|
oidc_discovery_url = "https://authelia.${var.base_hostname}"
|
||||||
oidc_client_id = module.nomad_oidc_client.client_id
|
oidc_client_id = module.nomad_oidc_client.client_id
|
||||||
oidc_client_secret = module.nomad_oidc_client.secret
|
oidc_client_secret = module.nomad_oidc_client.secret
|
||||||
bound_audiences = ["nomad"]
|
bound_audiences = [module.nomad_oidc_client.client_id]
|
||||||
oidc_scopes = [
|
oidc_scopes = [
|
||||||
"groups",
|
"groups",
|
||||||
"openid",
|
"openid",
|
||||||
@ -190,7 +190,7 @@ resource "nomad_acl_auth_method" "nomad_authelia" {
|
|||||||
resource "nomad_acl_binding_rule" "nomad_authelia_admin" {
|
resource "nomad_acl_binding_rule" "nomad_authelia_admin" {
|
||||||
description = "engineering rule"
|
description = "engineering rule"
|
||||||
auth_method = nomad_acl_auth_method.nomad_authelia.name
|
auth_method = nomad_acl_auth_method.nomad_authelia.name
|
||||||
selector = "\"nomad-deploy\" in list.roles"
|
selector = "\"nomad-admin\" in list.roles"
|
||||||
bind_type = "role"
|
bind_type = "role"
|
||||||
bind_name = "admin" # acls.nomad_acl_role.admin.name
|
bind_name = "admin" # acls.nomad_acl_role.admin.name
|
||||||
}
|
}
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
module "jellyfin" {
|
|
||||||
source = "./service"
|
|
||||||
|
|
||||||
name = "jellyfin"
|
|
||||||
image = "lscr.io/linuxserver/jellyfin:10.10.3"
|
|
||||||
|
|
||||||
ingress = true
|
|
||||||
service_port = 8096
|
|
||||||
use_wesher = var.use_wesher
|
|
||||||
ports = [
|
|
||||||
{
|
|
||||||
name = "discovery"
|
|
||||||
static = 7359,
|
|
||||||
task_config = true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "dnla",
|
|
||||||
static = 1900,
|
|
||||||
task_config = true,
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
env = {
|
|
||||||
PGID = 100
|
|
||||||
PUID = 1001
|
|
||||||
TZ = "America/Los_Angeles"
|
|
||||||
|
|
||||||
JELLYFIN_PublishedServerUrl = "https://jellyfin.thefij.rocks"
|
|
||||||
}
|
|
||||||
|
|
||||||
host_volumes = [
|
|
||||||
{
|
|
||||||
name = "jellyfin-config"
|
|
||||||
dest = "/config"
|
|
||||||
read_only = false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "media-read"
|
|
||||||
dest = "/media"
|
|
||||||
read_only = true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "media-overflow-read"
|
|
||||||
dest = "/media-overflow"
|
|
||||||
read_only = true
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
resources = {
|
|
||||||
cpu = 500
|
|
||||||
memory = 1200
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user