Format Tofu files

This commit is contained in:
2025-11-12 15:00:38 +00:00
parent 733ecdf498
commit 2d8083ba60
17 changed files with 356 additions and 356 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ module "services" {
}
locals {
volume_host = "${module.system_globals.volume_host}"
volume_host = module.system_globals.volume_host
}
module "caddy" {
source = "./modules/01-networking/caddy-service"
volume_path = "${local.volume_host}"
volume_path = local.volume_host
domains = [
"blackchaosnl.myaddr.dev",
]
+5 -5
View File
@@ -65,7 +65,7 @@ locals {
${site.site_address} {
import headers
route {
%{ if site.is_route_protected }
%{if site.is_route_protected}
reverse_proxy /outpost.goauthentik.io/* http://authentik:9000
forward_auth http://authentik:9000 {
@@ -73,17 +73,17 @@ locals {
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Entitlements X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
trusted_proxies private_ranges
}
%{ endif }
%{ if site.has_custom_config }
%{endif}
%{if site.has_custom_config}
${site.custom_config}
%{ else }
%{else}
reverse_proxy ${site.endpoint} {
${join("\n ", [
for key, value in site.reverse_proxy_options :
"${key} ${value}"
])}
}
%{ endif }
%{endif}
}
}
EOT
@@ -17,15 +17,15 @@ locals {
host_path = "${var.volume_path}/${local.container_name}/config"
container_path = "/config"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/book-ingest"
container_path = "/cwa-book-ingest"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/Calibre Library"
container_path = "/calibre-library"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/plugins"
container_path = "/config/.config/calibre/plugins"
read_only = false
@@ -24,7 +24,7 @@ locals {
host_path = "${var.volume_path}/${local.container_name}/config"
container_path = "/config"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/cache"
container_path = "/cache"
read_only = false
@@ -72,10 +72,10 @@ locals {
}
}
resource "local_file" "authentik_config_file" {
resource "local_file" "authentik_config_file" {
content = local.authentik_content
filename = "${var.volume_path}/${local.container_name}/user_settings.py"
}
}
module "authentik_network" {
source = "../../01-networking/network-service"
@@ -83,7 +83,7 @@ module "authentik_network" {
subnet = "172.16.0.0/29"
driver = "bridge"
options = {
"isolate": false
"isolate" : false
}
}
@@ -56,7 +56,7 @@ module "coder_network" {
subnet = "172.16.0.16/29"
driver = "bridge"
options = {
"isolate": false
"isolate" : false
}
}
@@ -83,7 +83,7 @@ module "penpot_network" {
subnet = "172.16.0.32/29"
driver = "bridge"
options = {
"isolate": false
"isolate" : false
}
}
@@ -21,7 +21,7 @@ locals {
host_path = "${var.volume_path}/${local.container_name}/config"
container_path = "/config"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/cache"
container_path = "/cache"
read_only = false
@@ -65,7 +65,7 @@ module "tandoor_network" {
subnet = "172.16.0.24/29"
driver = "bridge"
options = {
"isolate": false
"isolate" : false
}
}
@@ -57,11 +57,11 @@ module "traccar" {
host_path = "${var.volume_path}/${local.container_name}/logs"
container_path = "/opt/traccar/logs"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/data"
container_path = "/opt/traccar/data"
read_only = false
},{
}, {
host_path = "${var.volume_path}/${local.container_name}/traccar.xml"
container_path = "/opt/traccar/conf/traccar.xml"
read_only = true
+1 -1
View File
@@ -15,7 +15,7 @@ module "infrastructure_int" {
driver = "bridge"
attachable = true
options = {
"isolate": false
"isolate" : false
}
}