feat(id.tjo.space): changes

This commit is contained in:
Tine 2025-03-07 22:32:20 +01:00
parent 90347fd02c
commit 690fae2bf4
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 7 additions and 1 deletions

View file

@ -29,7 +29,7 @@ ufw allow 22/tcp # SSH
ufw allow 80/tcp # HTTP
ufw allow 443/tcp # HTTPS
ufw --force enable
#ufw --force enable
echo "=== Copy Configuration Files"
rsync -a id.tjo.space/containers/ /etc/containers/systemd/
@ -42,7 +42,10 @@ set -a && source id.tjo.space/secrets.env && set +a
echo "=== Prepare srv directories"
mkdir -p /srv/authentik/{media,certs,custom-templates}
chown -R 1200:1200 /srv/authentik
mkdir -p /srv/postgresql/data
chown -R 1100:1100 /srv/postgresql
echo "=== Setup Caddy"
systemctl restart caddy

View file

@ -9,6 +9,7 @@ EnvironmentFile=/etc/authentik/secrets.env
Volume=/srv/authentik/media:/media
Volume=/srv/authentik/custom-templates:/custom-templates
Network=main.network
User=1200
[Service]
Restart=always

View file

@ -10,6 +10,7 @@ Volume=/srv/authentik/media:/media
Volume=/srv/authentik/certs:/certs
Volume=/srv/authentik/custom-templates:/custom-templates
Network=main.network
User=1200
[Service]
Restart=always

View file

@ -8,6 +8,7 @@ EnvironmentFile=/etc/postgresql/secrets.env
Environment=POSTGRES_USER=id.tjo.space
Environment=POSTGRES_DB=id.tjo.space
Network=main.network
User=1100
[Service]
Restart=always