feat: implement comprehensive variable management system
- Create standardized group_vars directory structure - Add domains.yml with centralized subdomain mappings - Add infrastructure.yml with network, SMTP, and path config - Reorganize vault.yml secrets by service with consistent naming - Update 15+ Docker compose templates to use new variable structure - Simplify playbook commands by removing --extra-vars requirement - Replace hardcoded domains/IPs with template variables - Standardize secret references across all services 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
CLAUDE.md
14
CLAUDE.md
@ -28,17 +28,17 @@ ansible-playbook dns.yml -i hosts.yml
|
|||||||
### Service Management
|
### Service Management
|
||||||
```bash
|
```bash
|
||||||
# Deploy specific services using tags
|
# Deploy specific services using tags
|
||||||
ansible-playbook site.yml -i hosts.yml --tags caddy --vault-password-file vault_pass --extra-vars "@secrets.enc"
|
ansible-playbook site.yml -i hosts.yml --tags caddy --vault-password-file vault_pass
|
||||||
ansible-playbook site.yml -i hosts.yml --tags authentik,gitea --vault-password-file vault_pass --extra-vars "@secrets.enc"
|
ansible-playbook site.yml -i hosts.yml --tags authentik,gitea --vault-password-file vault_pass
|
||||||
ansible-playbook site.yml -i hosts.yml --tags docker --vault-password-file vault_pass --extra-vars "@secrets.enc" # all docker services
|
ansible-playbook site.yml -i hosts.yml --tags docker --vault-password-file vault_pass # all docker services
|
||||||
|
|
||||||
# Deploy services by category (new organized structure)
|
# Deploy services by category (new organized structure)
|
||||||
ansible-playbook site.yml -i hosts.yml --tags infrastructure --vault-password-file vault_pass --extra-vars "@secrets.enc"
|
ansible-playbook site.yml -i hosts.yml --tags infrastructure --vault-password-file vault_pass
|
||||||
ansible-playbook site.yml -i hosts.yml --tags media,productivity --vault-password-file vault_pass --extra-vars "@secrets.enc"
|
ansible-playbook site.yml -i hosts.yml --tags media,productivity --vault-password-file vault_pass
|
||||||
ansible-playbook site.yml -i hosts.yml --tags development,monitoring --vault-password-file vault_pass --extra-vars "@secrets.enc"
|
ansible-playbook site.yml -i hosts.yml --tags development,monitoring --vault-password-file vault_pass
|
||||||
|
|
||||||
# Deploy only infrastructure components
|
# Deploy only infrastructure components
|
||||||
ansible-playbook site.yml -i hosts.yml --tags common,cron --vault-password-file vault_pass --extra-vars "@secrets.enc"
|
ansible-playbook site.yml -i hosts.yml --tags common,cron --vault-password-file vault_pass
|
||||||
```
|
```
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
@ -3,11 +3,8 @@
|
|||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
created_username: phil
|
created_username: phil
|
||||||
vars_prompt:
|
|
||||||
- name: tailscale_key
|
|
||||||
prompt: Enter the tailscale key
|
|
||||||
roles:
|
roles:
|
||||||
- bootstrap
|
- bootstrap
|
||||||
- role: artis3n.tailscale
|
- role: artis3n.tailscale
|
||||||
vars:
|
vars:
|
||||||
tailscale_authkey: "{{ tailscale_key }}"
|
tailscale_authkey: "{{ vault_infrastructure.tailscale_key }}"
|
39
group_vars/all/domains.yml
Normal file
39
group_vars/all/domains.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Domain Configuration
|
||||||
|
primary_domain: "thesatelliteoflove.com"
|
||||||
|
secondary_domain: "nerder.land"
|
||||||
|
|
||||||
|
# Subdomain mappings
|
||||||
|
subdomains:
|
||||||
|
auth: "auth.{{ primary_domain }}"
|
||||||
|
git: "git.{{ primary_domain }}"
|
||||||
|
cal: "cal.{{ primary_domain }}"
|
||||||
|
docs: "docs.{{ primary_domain }}"
|
||||||
|
phlog: "phlog.{{ primary_domain }}" # Ghost blog
|
||||||
|
bookmarks: "bookmarks.{{ primary_domain }}" # Hoarder/Karakeep
|
||||||
|
heyform: "forms.{{ secondary_domain }}" # Heyform on nerder.land
|
||||||
|
media: "media.{{ primary_domain }}"
|
||||||
|
audio: "audio.{{ primary_domain }}" # Audiobookshelf
|
||||||
|
books: "books.{{ primary_domain }}" # Calibre
|
||||||
|
models: "models.{{ primary_domain }}" # Manyfold
|
||||||
|
pinchflat: "pinchflat.{{ primary_domain }}"
|
||||||
|
pin: "pin.{{ primary_domain }}" # Pinry
|
||||||
|
papers: "papers.{{ primary_domain }}" # Paperless-NGX
|
||||||
|
tasks: "tasks.{{ primary_domain }}" # MMDL
|
||||||
|
syncthing: "syncthing.{{ primary_domain }}"
|
||||||
|
loclog: "loclog.{{ primary_domain }}" # Dawarich
|
||||||
|
pingvin: "pingvin.{{ primary_domain }}"
|
||||||
|
social: "social.{{ primary_domain }}" # GoToSocial
|
||||||
|
post: "post.{{ primary_domain }}" # Postiz
|
||||||
|
home: "home.{{ primary_domain }}" # Glance
|
||||||
|
watcher: "watcher.{{ primary_domain }}" # Changedetection
|
||||||
|
appriseapi: "appriseapi.{{ primary_domain }}"
|
||||||
|
dockge: "dockge.{{ primary_domain }}"
|
||||||
|
code: "code.{{ primary_domain }}" # Code Server
|
||||||
|
chat: "chat.{{ primary_domain }}" # Conduit Matrix
|
||||||
|
|
||||||
|
# Email domains for notifications
|
||||||
|
email_domains:
|
||||||
|
updates: "updates.{{ primary_domain }}"
|
||||||
|
auth_email: "auth@updates.{{ primary_domain }}"
|
||||||
|
git_email: "git@updates.{{ primary_domain }}"
|
||||||
|
cal_email: "cal@updates.{{ primary_domain }}"
|
22
group_vars/all/infrastructure.yml
Normal file
22
group_vars/all/infrastructure.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Infrastructure Configuration
|
||||||
|
|
||||||
|
# Docker configuration
|
||||||
|
docker:
|
||||||
|
network_name: "lava"
|
||||||
|
stacks_path: "/opt/stacks"
|
||||||
|
hairpin_ip: "172.20.0.5"
|
||||||
|
|
||||||
|
# SMTP configuration
|
||||||
|
smtp:
|
||||||
|
host: "smtp.resend.com"
|
||||||
|
username: "resend"
|
||||||
|
from_domain: "{{ email_domains.updates }}"
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
|
network:
|
||||||
|
netcup_ip: "152.53.36.98"
|
||||||
|
docker_host_ip: "100.70.169.99"
|
||||||
|
|
||||||
|
# Paths
|
||||||
|
paths:
|
||||||
|
stacks: "{{ docker.stacks_path }}"
|
25
group_vars/docker/services.yml
Normal file
25
group_vars/docker/services.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Docker Services Configuration
|
||||||
|
|
||||||
|
# Service categories for organization
|
||||||
|
service_categories:
|
||||||
|
infrastructure: ["caddy", "authentik", "dockge"]
|
||||||
|
development: ["gitea", "codeserver", "conduit"]
|
||||||
|
media: ["audiobookshelf", "calibre", "ghost", "pinchflat", "pinry", "hoarder", "manyfold"]
|
||||||
|
productivity: ["paperlessngx", "baikal", "syncthing", "mmdl", "heyform", "dawarich", "pingvin"]
|
||||||
|
communication: ["gotosocial", "postiz"]
|
||||||
|
monitoring: ["glance", "changedetection", "appriseapi"]
|
||||||
|
|
||||||
|
# Common service configuration
|
||||||
|
services:
|
||||||
|
common:
|
||||||
|
restart_policy: "unless-stopped"
|
||||||
|
network: "{{ docker.network_name }}"
|
||||||
|
|
||||||
|
# Service-specific configurations
|
||||||
|
dawarich:
|
||||||
|
db_name: "dawarich"
|
||||||
|
db_user: "dawarich"
|
||||||
|
|
||||||
|
mmdl:
|
||||||
|
db_name: "mmdl"
|
||||||
|
db_user: "mmdl"
|
@ -10,11 +10,11 @@ services:
|
|||||||
- TZ=America/Denver
|
- TZ=America/Denver
|
||||||
- DISABLE_SSRF_REQUEST_FILTER=1
|
- DISABLE_SSRF_REQUEST_FILTER=1
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'auth.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.auth }}:172.20.0.5'
|
||||||
labels:
|
labels:
|
||||||
glance.name: Audiobookshelf
|
glance.name: Audiobookshelf
|
||||||
glance.icon: si:audiobookshelf
|
glance.icon: si:audiobookshelf
|
||||||
glance.url: https://audio.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.audio }}/
|
||||||
glance.description: Audio book server
|
glance.description: Audio book server
|
||||||
volumes:
|
volumes:
|
||||||
audiobooks:
|
audiobooks:
|
||||||
@ -28,4 +28,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -1,15 +1,15 @@
|
|||||||
PG_PASS={{ authentik_pg_pass }}
|
PG_PASS={{ vault_authentik.postgres_password }}
|
||||||
AUTHENTIK_SECRET_KEY={{ authentik_secret_key }}
|
AUTHENTIK_SECRET_KEY={{ vault_authentik.secret_key }}
|
||||||
# SMTP Host Emails are sent to
|
# SMTP Host Emails are sent to
|
||||||
AUTHENTIK_EMAIL__HOST=smtp.resend.com
|
AUTHENTIK_EMAIL__HOST={{ smtp.host }}
|
||||||
AUTHENTIK_EMAIL__PORT=25
|
AUTHENTIK_EMAIL__PORT=25
|
||||||
# Optionally authenticate (don't add quotation marks to your password)
|
# Optionally authenticate (don't add quotation marks to your password)
|
||||||
AUTHENTIK_EMAIL__USERNAME=resend
|
AUTHENTIK_EMAIL__USERNAME={{ smtp.username }}
|
||||||
AUTHENTIK_EMAIL__PASSWORD={{ resend_key }}
|
AUTHENTIK_EMAIL__PASSWORD={{ vault_smtp.password }}
|
||||||
# Use StartTLS
|
# Use StartTLS
|
||||||
AUTHENTIK_EMAIL__USE_TLS=true
|
AUTHENTIK_EMAIL__USE_TLS=true
|
||||||
# Use SSL
|
# Use SSL
|
||||||
AUTHENTIK_EMAIL__USE_SSL=false
|
AUTHENTIK_EMAIL__USE_SSL=false
|
||||||
AUTHENTIK_EMAIL__TIMEOUT=10
|
AUTHENTIK_EMAIL__TIMEOUT=10
|
||||||
# Email address authentik will send from, should have a correct @domain
|
# Email address authentik will send from, should have a correct @domain
|
||||||
AUTHENTIK_EMAIL__FROM=auth@updates.thesatelliteoflove.com
|
AUTHENTIK_EMAIL__FROM=auth@{{ email_domains.updates }}
|
@ -16,7 +16,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
glance.name: Calibre
|
glance.name: Calibre
|
||||||
glance.icon: si:calibreweb
|
glance.icon: si:calibreweb
|
||||||
glance.url: https://books.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.books }}/
|
||||||
glance.description: Book server
|
glance.description: Book server
|
||||||
volumes:
|
volumes:
|
||||||
config:
|
config:
|
||||||
@ -26,4 +26,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -5,11 +5,11 @@ services:
|
|||||||
container_name: changedetection
|
container_name: changedetection
|
||||||
hostname: changedetection
|
hostname: changedetection
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'chat.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.chat }}:172.20.0.5'
|
||||||
labels:
|
labels:
|
||||||
glance.name: Changedetection
|
glance.name: Changedetection
|
||||||
glance.icon: si:watchtower
|
glance.icon: si:watchtower
|
||||||
glance.url: https://watcher.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.watcher }}/
|
||||||
glance.description: Changedetection
|
glance.description: Changedetection
|
||||||
glance.id: changedetection
|
glance.id: changedetection
|
||||||
volumes:
|
volumes:
|
||||||
@ -50,7 +50,7 @@ services:
|
|||||||
# - NO_PROXY="localhost,192.168.0.0/24"
|
# - NO_PROXY="localhost,192.168.0.0/24"
|
||||||
#
|
#
|
||||||
# Base URL of your changedetection.io install (Added to the notification alert)
|
# Base URL of your changedetection.io install (Added to the notification alert)
|
||||||
- BASE_URL=https://watcher.thesatelliteoflove.com
|
- BASE_URL=https://{{ subdomains.watcher }}
|
||||||
# Respect proxy_pass type settings, `proxy_set_header Host "localhost";` and `proxy_set_header X-Forwarded-Prefix /app;`
|
# Respect proxy_pass type settings, `proxy_set_header Host "localhost";` and `proxy_set_header X-Forwarded-Prefix /app;`
|
||||||
# More here https://github.com/dgtlmoon/changedetection.io/wiki/Running-changedetection.io-behind-a-reverse-proxy-sub-directory
|
# More here https://github.com/dgtlmoon/changedetection.io/wiki/Running-changedetection.io-behind-a-reverse-proxy-sub-directory
|
||||||
# - USE_X_SETTINGS=1
|
# - USE_X_SETTINGS=1
|
||||||
@ -130,4 +130,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
||||||
|
@ -10,7 +10,7 @@ services:
|
|||||||
- dawarich_db_data:/var/lib/postgresql/data
|
- dawarich_db_data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: {{ dawarich_db_password }}
|
POSTGRES_PASSWORD: {{ vault_dawarich.postgres_password }}
|
||||||
POSTGRES_DB: dawarich_production
|
POSTGRES_DB: dawarich_production
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -25,7 +25,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
glance.name: Dawarich
|
glance.name: Dawarich
|
||||||
glance.icon: si:openstreetmap
|
glance.icon: si:openstreetmap
|
||||||
glance.url: https://loclog.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.loclog }}/
|
||||||
glance.description: Dawarich
|
glance.description: Dawarich
|
||||||
glance.id: dawarich
|
glance.id: dawarich
|
||||||
volumes:
|
volumes:
|
||||||
@ -45,10 +45,10 @@ services:
|
|||||||
DATABASE_HOST: dawarich_db
|
DATABASE_HOST: dawarich_db
|
||||||
DATABASE_PORT: 5432
|
DATABASE_PORT: 5432
|
||||||
DATABASE_USERNAME: postgres
|
DATABASE_USERNAME: postgres
|
||||||
DATABASE_PASSWORD: {{ dawarich_db_password }}
|
DATABASE_PASSWORD: {{ vault_dawarich.postgres_password }}
|
||||||
DATABASE_NAME: dawarich_production
|
DATABASE_NAME: dawarich_production
|
||||||
MIN_MINUTES_SPENT_IN_CITY: 60
|
MIN_MINUTES_SPENT_IN_CITY: 60
|
||||||
APPLICATION_HOSTS: loclog.thesatelliteoflove.com,localhost,::1,127.0.0.1
|
APPLICATION_HOSTS: {{ subdomains.loclog }},localhost,::1,127.0.0.1
|
||||||
TIME_ZONE: America/Denver
|
TIME_ZONE: America/Denver
|
||||||
APPLICATION_PROTOCOL: http
|
APPLICATION_PROTOCOL: http
|
||||||
DISTANCE_UNIT: mi
|
DISTANCE_UNIT: mi
|
||||||
@ -85,4 +85,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -7,15 +7,15 @@ services:
|
|||||||
- database__client=sqlite3
|
- database__client=sqlite3
|
||||||
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
||||||
- database__useNullAsDefault=true
|
- database__useNullAsDefault=true
|
||||||
- url=https://phlog.thesatelliteoflove.com
|
- url=https://{{ subdomains.phlog }}
|
||||||
volumes:
|
volumes:
|
||||||
- ghost:/var/lib/ghost/content
|
- ghost:/var/lib/ghost/content
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'phlog.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.phlog }}:172.20.0.5'
|
||||||
labels:
|
labels:
|
||||||
glance.name: Ghost
|
glance.name: Ghost
|
||||||
glance.icon: si:ghost
|
glance.icon: si:ghost
|
||||||
glance.url: https://phlog.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.phlog }}/
|
||||||
glance.description: Photo Blog
|
glance.description: Photo Blog
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
@ -24,4 +24,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -7,17 +7,17 @@ services:
|
|||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- GITEA__mailer__ENABLED=true
|
- GITEA__mailer__ENABLED=true
|
||||||
- GITEA__mailer__FROM=git@updates.thesatelliteoflove.com
|
- GITEA__mailer__FROM=git@{{ email_domains.updates }}
|
||||||
- GITEA__mailer__PROTOCOL=smtps
|
- GITEA__mailer__PROTOCOL=smtps
|
||||||
- GITEA__mailer__SMTP_ADDR=smtp.resend.com
|
- GITEA__mailer__SMTP_ADDR={{ smtp.host }}
|
||||||
- GITEA__mailer__SMTP_PORT=465
|
- GITEA__mailer__SMTP_PORT=465
|
||||||
- GITEA__mailer__USER=resend
|
- GITEA__mailer__USER={{ smtp.username }}
|
||||||
- GITEA__mailer__PASSWD={{ resend_key }}
|
- GITEA__mailer__PASSWD={{ vault_smtp.password }}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
glance.name: Gitea
|
glance.name: Gitea
|
||||||
glance.icon: si:gitea
|
glance.icon: si:gitea
|
||||||
glance.url: https://git.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.git }}/
|
||||||
glance.description: Code repo
|
glance.description: Code repo
|
||||||
glance.id: gitea
|
glance.id: gitea
|
||||||
volumes:
|
volumes:
|
||||||
@ -27,8 +27,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 222:22
|
- 222:22
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'auth.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.auth }}:{{ docker.hairpin_ip }}'
|
||||||
- 'git.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.git }}:{{ docker.hairpin_ip }}'
|
||||||
runner:
|
runner:
|
||||||
image: gitea/act_runner:nightly
|
image: gitea/act_runner:nightly
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -37,12 +37,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- CONFIG_FILE=/config.yaml
|
- CONFIG_FILE=/config.yaml
|
||||||
- GITEA_INSTANCE_URL=http://gitea:3000
|
- GITEA_INSTANCE_URL=http://gitea:3000
|
||||||
- GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_key }}
|
- GITEA_RUNNER_REGISTRATION_TOKEN={{ vault_infrastructure.gitea_runner_key }}
|
||||||
- GITEA_RUNNER_NAME=runner_1
|
- GITEA_RUNNER_NAME=runner_1
|
||||||
- GITEA_RUNNER_LABELS=docker
|
- GITEA_RUNNER_LABELS=docker
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'auth.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.auth }}:{{ docker.hairpin_ip }}'
|
||||||
- 'git.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.git }}:{{ docker.hairpin_ip }}'
|
||||||
labels:
|
labels:
|
||||||
glance.parent: gitea
|
glance.parent: gitea
|
||||||
glance.name: Worker
|
glance.name: Worker
|
||||||
@ -50,11 +50,11 @@ services:
|
|||||||
- ./runner-config.yaml:/config.yaml
|
- ./runner-config.yaml:/config.yaml
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /opt/stacks/caddy/site:/sites
|
- {{ paths.stacks }}/caddy/site:/sites
|
||||||
volumes:
|
volumes:
|
||||||
gitea:
|
gitea:
|
||||||
driver: local
|
driver: local
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -8,16 +8,16 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'thesatelliteoflove.com:172.20.0.5'
|
- '{{ primary_domain }}:172.20.0.5'
|
||||||
- 'watcher.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.watcher }}:172.20.0.5'
|
||||||
labels:
|
labels:
|
||||||
glance.name: Glance
|
glance.name: Glance
|
||||||
glance.icon: si:homepage
|
glance.icon: si:homepage
|
||||||
glance.url: https://home.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.home }}/
|
||||||
glance.description: Homepage app
|
glance.description: Homepage app
|
||||||
glance.id: glance
|
glance.id: glance
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -4,28 +4,28 @@ services:
|
|||||||
container_name: gotosocial
|
container_name: gotosocial
|
||||||
user: 1000:1000
|
user: 1000:1000
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'auth.thesatelliteoflove.com:172.20.0.5'
|
- '{{ subdomains.auth }}:{{ docker.hairpin_ip }}'
|
||||||
environment:
|
environment:
|
||||||
GTS_HOST: social.thesatelliteoflove.com
|
GTS_HOST: {{ subdomains.social }}
|
||||||
GTS_DB_TYPE: sqlite
|
GTS_DB_TYPE: sqlite
|
||||||
GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db
|
GTS_DB_ADDRESS: /gotosocial/storage/sqlite.db
|
||||||
GTS_WAZERO_COMPILATION_CACHE: /gotosocial/.cache
|
GTS_WAZERO_COMPILATION_CACHE: /gotosocial/.cache
|
||||||
GTS_LETSENCRYPT_ENABLED: "false"
|
GTS_LETSENCRYPT_ENABLED: "false"
|
||||||
GTS_LETSENCRYPT_EMAIL_ADDRESS: ""
|
GTS_LETSENCRYPT_EMAIL_ADDRESS: ""
|
||||||
GTS_TRUSTED_PROXIES: "172.20.0.5"
|
GTS_TRUSTED_PROXIES: "{{ docker.hairpin_ip }}"
|
||||||
GTS_ACCOUNT_DOMAIN: thesatelliteoflove.com
|
GTS_ACCOUNT_DOMAIN: {{ primary_domain }}
|
||||||
GTS_OIDC_ENABLED: "true"
|
GTS_OIDC_ENABLED: "true"
|
||||||
GTS_OIDC_IDP_NAME: "Authentik"
|
GTS_OIDC_IDP_NAME: "Authentik"
|
||||||
GTS_OIDC_ISSUER: https://auth.thesatelliteoflove.com/application/o/gotosocial/
|
GTS_OIDC_ISSUER: https://{{ subdomains.auth }}/application/o/gotosocial/
|
||||||
GTS_OIDC_CLIENT_ID: {{ gts_oidc_client_id }}
|
GTS_OIDC_CLIENT_ID: {{ vault_gotosocial.oidc.client_id }}
|
||||||
GTS_OIDC_CLIENT_SECRET: {{ gts_oidc_client_secret }}
|
GTS_OIDC_CLIENT_SECRET: {{ vault_gotosocial.oidc.client_secret }}
|
||||||
GTS_OIDC_LINK_EXISTING: "true"
|
GTS_OIDC_LINK_EXISTING: "true"
|
||||||
GTS_HTTP_CLIENT: "20s"
|
GTS_HTTP_CLIENT: "20s"
|
||||||
GTS_SMTP_HOST: "smtp.resend.com"
|
GTS_SMTP_HOST: "{{ smtp.host }}"
|
||||||
GTS_SMTP_PORT: "587"
|
GTS_SMTP_PORT: "587"
|
||||||
GTS_SMTP_USERNAME: "resend"
|
GTS_SMTP_USERNAME: "{{ smtp.username }}"
|
||||||
GTS_SMTP_PASSWORD: {{ resend_key }}
|
GTS_SMTP_PASSWORD: {{ vault_smtp.password }}
|
||||||
GTS_SMTP_FROM: "social@updates.thesatelliteoflove.com"
|
GTS_SMTP_FROM: "social@{{ email_domains.updates }}"
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
volumes:
|
volumes:
|
||||||
- gotosocial:/gotosocial/storage
|
- gotosocial:/gotosocial/storage
|
||||||
@ -34,7 +34,7 @@ services:
|
|||||||
docker-volume-backup.stop-during-backup: true
|
docker-volume-backup.stop-during-backup: true
|
||||||
glance.name: GoToSocial
|
glance.name: GoToSocial
|
||||||
glance.icon: si:mastodon
|
glance.icon: si:mastodon
|
||||||
glance.url: https://social.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.social }}/
|
||||||
glance.description: Fediverse server
|
glance.description: Fediverse server
|
||||||
glance.id: gotosocial
|
glance.id: gotosocial
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ services:
|
|||||||
BACKUP_RETENTION_DAYS: 1
|
BACKUP_RETENTION_DAYS: 1
|
||||||
AWS_S3_BUCKET_NAME: tsolbackups
|
AWS_S3_BUCKET_NAME: tsolbackups
|
||||||
AWS_ENDPOINT: s3.us-west-004.backblazeb2.com
|
AWS_ENDPOINT: s3.us-west-004.backblazeb2.com
|
||||||
AWS_ACCESS_KEY_ID: {{ backup_key_id }}
|
AWS_ACCESS_KEY_ID: {{ vault_backup.access_key_id }}
|
||||||
AWS_SECRET_ACCESS_KEY: {{ backup_key }}
|
AWS_SECRET_ACCESS_KEY: {{ vault_backup.secret_access_key }}
|
||||||
BACKUP_SKIP_BACKENDS_FROM_PRUNE: s3
|
BACKUP_SKIP_BACKENDS_FROM_PRUNE: s3
|
||||||
|
|
||||||
|
|
||||||
@ -69,4 +69,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -11,21 +11,21 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
glance.name: Heyform
|
glance.name: Heyform
|
||||||
glance.icon: si:googleforms
|
glance.icon: si:googleforms
|
||||||
glance.url: https://forms.nerder.land/
|
glance.url: https://{{ subdomains.heyform }}/
|
||||||
glance.description: Forms server
|
glance.description: Forms server
|
||||||
glance.id: heyform
|
glance.id: heyform
|
||||||
environment:
|
environment:
|
||||||
- APP_HOMEPAGE_URL=http://forms.nerder.land
|
- APP_HOMEPAGE_URL=http://{{ subdomains.heyform }}
|
||||||
- SESSION_KEY={{ heyform_session_key }}
|
- SESSION_KEY={{ vault_heyform.session_key }}
|
||||||
- FORM_ENCRYPTION_KEY={{ heyform_encryption_key }}
|
- FORM_ENCRYPTION_KEY={{ vault_heyform.encryption_key }}
|
||||||
- MONGO_URI='mongodb://mongo:27017/heyform'
|
- MONGO_URI='mongodb://mongo:27017/heyform'
|
||||||
- REDIS_HOST=keydb
|
- REDIS_HOST=keydb
|
||||||
- REDIS_PORT=6379
|
- REDIS_PORT=6379
|
||||||
- SMTP_FROM=nerderland@updates.thesatelliteoflove.com
|
- SMTP_FROM=nerderland@{{ email_domains.updates }}
|
||||||
- SMTP_HOST=smtp.resend.com
|
- SMTP_HOST={{ smtp.host }}
|
||||||
- SMTP_PORT=465
|
- SMTP_PORT=465
|
||||||
- SMTP_USER=resend
|
- SMTP_USER={{ smtp.username }}
|
||||||
- SMTP_PASSWORD={{ resend_key }}
|
- SMTP_PASSWORD={{ vault_smtp.password }}
|
||||||
- SMTP_SECURE=true
|
- SMTP_SECURE=true
|
||||||
|
|
||||||
mongo:
|
mongo:
|
||||||
@ -60,4 +60,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -1,10 +1,10 @@
|
|||||||
KARAKEEP_VERSION=release
|
KARAKEEP_VERSION=release
|
||||||
NEXTAUTH_SECRET={{ hoarder_nextauth_secret }}
|
NEXTAUTH_SECRET={{ vault_hoarder.nextauth_secret }}
|
||||||
MEILI_MASTER_KEY={{ hoarder_meili_master_key }}
|
MEILI_MASTER_KEY={{ vault_hoarder.meili_master_key }}
|
||||||
NEXTAUTH_URL=https://bookmarks.thesatelliteoflove.com
|
NEXTAUTH_URL=https://{{ subdomains.bookmarks }}
|
||||||
OPENAI_API_KEY={{ openai_api_key }}
|
OPENAI_API_KEY={{ vault_infrastructure.openai_api_key }}
|
||||||
OAUTH_CLIENT_SECRET={{ hoarder_oidc_client_secret }}
|
OAUTH_CLIENT_SECRET={{ vault_hoarder.oidc.client_secret }}
|
||||||
OAUTH_CLIENT_ID=GTi0QBRH5TiTqZfxfAkYSQVVFouGdlOFMc2sjivN
|
OAUTH_CLIENT_ID=GTi0QBRH5TiTqZfxfAkYSQVVFouGdlOFMc2sjivN
|
||||||
OAUTH_PROVIDER_NAME=Authentik
|
OAUTH_PROVIDER_NAME=Authentik
|
||||||
OAUTH_WELLKNOWN_URL=https://auth.thesatelliteoflove.com/application/o/hoarder/.well-known/openid-configuration
|
OAUTH_WELLKNOWN_URL=https://{{ subdomains.auth }}/application/o/hoarder/.well-known/openid-configuration
|
||||||
OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING=true
|
OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING=true
|
@ -9,12 +9,12 @@ services:
|
|||||||
- .env.local
|
- .env.local
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
- "auth.thesatelliteoflove.com:172.20.0.5"
|
- "{{ subdomains.auth }}:{{ docker.hairpin_ip }}"
|
||||||
- "cal.thesatelliteoflove.com:172.20.0.5"
|
- "{{ subdomains.cal }}:{{ docker.hairpin_ip }}"
|
||||||
labels:
|
labels:
|
||||||
glance.name: MMDL
|
glance.name: MMDL
|
||||||
glance.icon: si:task
|
glance.icon: si:task
|
||||||
glance.url: https://tasks.thesatelliteoflove.com/
|
glance.url: https://{{ subdomains.tasks }}/
|
||||||
glance.description: Task and calendar management
|
glance.description: Task and calendar management
|
||||||
glance.id: mmdl
|
glance.id: mmdl
|
||||||
|
|
||||||
@ -26,8 +26,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: mmdl
|
MYSQL_DATABASE: mmdl
|
||||||
MYSQL_USER: mmdl
|
MYSQL_USER: mmdl
|
||||||
MYSQL_PASSWORD: "{{ vault_mmdl_mysql_password }}"
|
MYSQL_PASSWORD: "{{ vault_mmdl.mysql_password }}"
|
||||||
MYSQL_ROOT_PASSWORD: "{{ vault_mmdl_mysql_root_password }}"
|
MYSQL_ROOT_PASSWORD: "{{ vault_mmdl.mysql_root_password }}"
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||||
MYSQL_ROOT_HOST: "%"
|
MYSQL_ROOT_HOST: "%"
|
||||||
volumes:
|
volumes:
|
||||||
@ -43,4 +43,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
@ -1,32 +1,32 @@
|
|||||||
# Database Configuration
|
# Database Configuration
|
||||||
DB_HOST=mmdl_db
|
DB_HOST=mmdl_db
|
||||||
DB_USER=mmdl
|
DB_USER=mmdl
|
||||||
DB_PASS={{ vault_mmdl_mysql_password }}
|
DB_PASS={{ vault_mmdl.mysql_password }}
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DIALECT=mysql
|
DB_DIALECT=mysql
|
||||||
DB_CHARSET=utf8mb4
|
DB_CHARSET=utf8mb4
|
||||||
DB_NAME=mmdl
|
DB_NAME=mmdl
|
||||||
|
|
||||||
# Encryption
|
# Encryption
|
||||||
AES_PASSWORD={{ vault_mmdl_aes_password }}
|
AES_PASSWORD={{ vault_mmdl.aes_password }}
|
||||||
|
|
||||||
# SMTP Settings
|
# SMTP Settings
|
||||||
SMTP_HOST=smtp.resend.com
|
SMTP_HOST={{ smtp.host }}
|
||||||
SMTP_USERNAME=resend
|
SMTP_USERNAME={{ smtp.username }}
|
||||||
SMTP_PASSWORD={{ resend_key }}
|
SMTP_PASSWORD={{ vault_smtp.password }}
|
||||||
SMTP_FROM=tasks@updates.thesatelliteoflove.com
|
SMTP_FROM=tasks@{{ email_domains.updates }}
|
||||||
SMTP_PORT=587
|
SMTP_PORT=587
|
||||||
SMTP_SECURE=true
|
SMTP_SECURE=true
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
USE_NEXT_AUTH=true
|
USE_NEXT_AUTH=true
|
||||||
NEXTAUTH_URL=https://tasks.thesatelliteoflove.com
|
NEXTAUTH_URL=https://{{ subdomains.tasks }}
|
||||||
NEXTAUTH_SECRET={{ vault_mmdl_nextauth_secret }}
|
NEXTAUTH_SECRET={{ vault_mmdl.nextauth_secret }}
|
||||||
|
|
||||||
# Authentik OIDC Configuration
|
# Authentik OIDC Configuration
|
||||||
AUTHENTIK_ISSUER=https://auth.thesatelliteoflove.com/application/o/mmdl
|
AUTHENTIK_ISSUER=https://{{ subdomains.auth }}/application/o/mmdl
|
||||||
AUTHENTIK_CLIENT_ID={{ vault_mmdl_oidc_client_id }}
|
AUTHENTIK_CLIENT_ID={{ vault_mmdl.oidc.client_id }}
|
||||||
AUTHENTIK_CLIENT_SECRET={{ vault_mmdl_oidc_client_secret }}
|
AUTHENTIK_CLIENT_SECRET={{ vault_mmdl.oidc.client_secret }}
|
||||||
|
|
||||||
# User and Session Management
|
# User and Session Management
|
||||||
ALLOW_USER_REGISTRATION=false
|
ALLOW_USER_REGISTRATION=false
|
||||||
@ -35,7 +35,7 @@ OTP_VALIDITY_PERIOD=300
|
|||||||
SESSION_VALIDITY_PERIOD=30
|
SESSION_VALIDITY_PERIOD=30
|
||||||
|
|
||||||
# Application Settings
|
# Application Settings
|
||||||
API_URL=https://tasks.thesatelliteoflove.com
|
API_URL=https://{{ subdomains.tasks }}
|
||||||
DEBUG_MODE=false
|
DEBUG_MODE=false
|
||||||
TEST_MODE=false
|
TEST_MODE=false
|
||||||
SUBTASK_RECURSION_DEPTH=5
|
SUBTASK_RECURSION_DEPTH=5
|
@ -24,11 +24,11 @@
|
|||||||
|
|
||||||
# This is required if you will be exposing Paperless-ngx on a public domain
|
# This is required if you will be exposing Paperless-ngx on a public domain
|
||||||
# (if doing so please consider security measures such as reverse proxy)
|
# (if doing so please consider security measures such as reverse proxy)
|
||||||
PAPERLESS_URL=https://paper.thesatelliteoflove.com
|
PAPERLESS_URL=https://{{ subdomains.papers }}
|
||||||
|
|
||||||
# Adjust this key if you plan to make paperless available publicly. It should
|
# Adjust this key if you plan to make paperless available publicly. It should
|
||||||
# be a very long sequence of random characters. You don't need to remember it.
|
# be a very long sequence of random characters. You don't need to remember it.
|
||||||
PAPERLESS_SECRET_KEY={{ paperlessngx_secret }}
|
PAPERLESS_SECRET_KEY={{ vault_paperlessngx.secret_key }}
|
||||||
|
|
||||||
# Use this variable to set a timezone for the Paperless Docker containers. If not specified, defaults to UTC.
|
# Use this variable to set a timezone for the Paperless Docker containers. If not specified, defaults to UTC.
|
||||||
PAPERLESS_TIME_ZONE=America/Denver
|
PAPERLESS_TIME_ZONE=America/Denver
|
||||||
@ -43,4 +43,4 @@ PAPERLESS_TIME_ZONE=America/Denver
|
|||||||
|
|
||||||
# authentik
|
# authentik
|
||||||
PAPERLESS_APPS: "allauth.socialaccount.providers.openid_connect"
|
PAPERLESS_APPS: "allauth.socialaccount.providers.openid_connect"
|
||||||
PAPERLESS_SOCIALACCOUNT_PROVIDERS: '{"openid_connect": {"APPS": [{"provider_id": "authentik","name": "Authentik SSO","client_id": "{{ paperless_oauth_client_id }}","secret": "{{ paperless_oauth_client_secret }}","settings": { "server_url": "https://auth.thesatelliteoflove.com/application/o/paperlessngx/.well-known/openid-configuration"}}]}}'
|
PAPERLESS_SOCIALACCOUNT_PROVIDERS: '{"openid_connect": {"APPS": [{"provider_id": "authentik","name": "Authentik SSO","client_id": "{{ vault_paperlessngx.oidc.client_id }}","secret": "{{ vault_paperlessngx.oidc.client_secret }}","settings": { "server_url": "https://{{ subdomains.auth }}/application/o/paperlessngx/.well-known/openid-configuration"}}]}}'
|
@ -5,7 +5,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
glance.name: Pinry
|
glance.name: Pinry
|
||||||
glance.icon: si:pinterest
|
glance.icon: si:pinterest
|
||||||
glance.url: https://pin.thesatelliteoflove.com
|
glance.url: https://{{ subdomains.pin }}
|
||||||
glance.description: Pinterest clone
|
glance.description: Pinterest clone
|
||||||
glance.id: pinterest
|
glance.id: pinterest
|
||||||
environment:
|
environment:
|
||||||
@ -18,4 +18,4 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external: true
|
external: true
|
||||||
name: lava
|
name: {{ docker.network_name }}
|
Reference in New Issue
Block a user