mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/plover: add comments to various parts
This commit is contained in:
parent
f75c04eaa9
commit
93355b3c67
@ -25,6 +25,7 @@ in
|
||||
# The primary DNS server that is completely hidden.
|
||||
./modules/services/coredns.nix
|
||||
|
||||
# The reverse proxy of choice.
|
||||
./modules/services/nginx.nix
|
||||
|
||||
# The database of choice which is used by most self-managed services on
|
||||
|
@ -127,7 +127,11 @@ in
|
||||
# Setting up Gitea for PostgreSQL secure schema usage.
|
||||
systemd.services.gitea = {
|
||||
path = [ config.services.postgresql.package ];
|
||||
preStart = lib.mkAfter ''
|
||||
|
||||
# Gitea service module will have to set up certain things first which is
|
||||
# why we have to go first.
|
||||
preStart = lib.mkBefore ''
|
||||
# Setting up the appropriate schema for PostgreSQL secure schema usage.
|
||||
psql -tAc "SELECT 1 FROM information_schema.schemata WHERE schema_name='${giteaDatabaseUser}';" \
|
||||
grep -q 1 || psql -tAc "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION ${giteaDatabaseUser};"
|
||||
'';
|
||||
|
@ -64,6 +64,7 @@ in
|
||||
systemd.services.keycloak = {
|
||||
path = [ config.services.postgresql.package ];
|
||||
preStart = lib.mkAfter ''
|
||||
# Setting up the appropriate schema for PostgreSQL secure schema usage.
|
||||
psql -tAc "SELECT 1 FROM information_schema.schemata WHERE schema_name='${keycloakUser}';" \
|
||||
| grep -q 1 || psql -tAc "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION ${keycloakUser};"
|
||||
'';
|
||||
|
@ -71,6 +71,7 @@ in
|
||||
systemd.services.vaultwarden = {
|
||||
path = [ config.services.postgresql.package ];
|
||||
preStart = lib.mkAfter ''
|
||||
# Setting up the appropriate schema for PostgreSQL secure schema usage.
|
||||
psql -tAc "SELECT 1 FROM information_schema.schemata WHERE schema_name='${vaultwardenUser}';" \
|
||||
| grep -q 1 || psql -tAc "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION ${vaultwardenUser};"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user