lol

Merge pull request #241126 from RaitoBezarius/fix-plausible-secret-handling

authored by

Ryan Lahfa and committed by
GitHub
89d68ceb 0d2f526d

+5 -2
+5 -2
nixos/modules/services/web-apps/plausible.nix
··· 238 238 path = [ cfg.package ] 239 239 ++ optional cfg.database.postgres.setup config.services.postgresql.package; 240 240 script = '' 241 - export CONFIG_DIR=$CREDENTIALS_DIRECTORY 241 + export RELEASE_COOKIE="$(< $CREDENTIALS_DIRECTORY/RELEASE_COOKIE )" 242 + export ADMIN_USER_PWD="$(< $CREDENTIALS_DIRECTORY/ADMIN_USER_PWD )" 243 + export SECRET_KEY_BASE="$(< $CREDENTIALS_DIRECTORY/SECRET_KEY_BASE )" 242 244 243 - export RELEASE_COOKIE="$(< $CREDENTIALS_DIRECTORY/RELEASE_COOKIE )" 245 + ${lib.optionalString (cfg.mail.smtp.passwordFile != null) 246 + ''export SMTP_USER_PWD="$(< $CREDENTIALS_DIRECTORY/SMTP_USER_PWD )"''} 244 247 245 248 # setup 246 249 ${cfg.package}/createdb.sh