Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions config/stacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
service_name: "prowlarr"
service_port: 9696
image_name: "linuxserver/prowlarr:1.37.0"
username: "default_username"
password: "ProwlarrPassword1!"
domain_name: "prowlarr.dcapi.app"
ip_address: "192.168.5.22"
mounts:
Expand All @@ -26,8 +24,6 @@
service_name: "sonarr"
service_port: 8989
image_name: "linuxserver/sonarr:4.0.14.2939-ls281"
username: "default_username"
password: "SonarrPassword1!"
domain_name: "sonarr.dcapi.app"
ip_address: "192.168.5.23"
mounts:
Expand All @@ -38,8 +34,6 @@
service_name: "radarr"
service_port: 7878
image_name: "linuxserver/radarr:5.26.2"
username: "default_username"
password: "RadarrPassword1!"
domain_name: "radarr.dcapi.app"
ip_address: "192.168.5.24"
mounts:
Expand All @@ -49,8 +43,6 @@
service_name: "lidarr"
service_port: 8686
image_name: "linuxserver/lidarr:2.13.0-develop"
username: "default_username"
password: "LidarrPassword1!"
domain_name: "lidarr.dcapi.app"
ip_address: "192.168.5.25"
mounts:
Expand All @@ -60,8 +52,6 @@
service_name: "readarr"
service_port: 8787
image_name: "linuxserver/readarr:0.4.17-develop"
username: "default_username"
password: "ReadarrPassword1!"
domain_name: "readarr.dcapi.app"
ip_address: "192.168.5.26"
mounts:
Expand Down
12 changes: 10 additions & 2 deletions terraform/modules/proxy_service_stack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ module "service_dns" {

//Note: This will still require manually navigating to the service and setting up the credentials on the first run

resource "random_password" "service_password" {
for_each = var.stack.services

length = 24
special = true
override_special = "!#$%&*()-_=+[]{}<>:?"
}

module "authentication" {
source = "../proxy_auth"
for_each = var.stack.services
Expand All @@ -45,8 +53,8 @@ module "authentication" {
user_to_add_to_access_group = var.admin_username
access_group_attributes = jsonencode(
{
"${each.value.service_name}_username" : each.value.username,
"${each.value.service_name}_password" : each.value.password
"${each.value.service_name}_username" : "admin",
"${each.value.service_name}_password" : random_password.service_password[each.key].result
}
)
}
3 changes: 0 additions & 3 deletions terraform/modules/proxy_service_stack/outputs.tf

This file was deleted.

7 changes: 7 additions & 0 deletions terraform/modules/proxy_service_stack/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform {
required_providers {
random = {
source = "hashicorp/random"
}
}
}