-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added app.env and generate sqlite database
- Loading branch information
Showing
2 changed files
with
67 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,47 +16,17 @@ WorkingDirectory=%S/state | |
Restart=always | ||
TimeoutStopSec=70 | ||
ExecStartPre=/bin/mkdir -p config | ||
ExecStartPre=/bin/bash -c 'if [ ! -f %S/state/database.sqlite ]; then /bin/touch %S/state/database.sqlite; fi' | ||
ExecStartPre=/bin/rm -f %t/2fauth-app.pid %t/2fauth-app.ctr-id | ||
ExecStartPre=-runagent discover-smarthost | ||
ExecStart=/usr/bin/podman run --conmon-pidfile %t/2fauth-app.pid \ | ||
--cidfile %t/2fauth-app.ctr-id --cgroups=no-conmon \ | ||
--pod-id-file %t/2fauth.pod-id --replace -d --name 2fauth-app \ | ||
--volume 2fauth-app:/var/www/html/:Z \ | ||
--volume 2fauth-config:/tmp:Z \ | ||
--env=FAUTH_* \ | ||
--env-file=%/state/key.env \ | ||
--env APP_NAME=2FAuth \ | ||
--env APP_ENV=local \ | ||
--env SITE_OWNER[email protected] \ | ||
--env APP_KEY=${APP_KEY} \ | ||
--env APP_URL=${APP_URL} \ | ||
--env LOG_CHANNEL=daily \ | ||
--env LOG_LEVEL=notice \ | ||
--env DB_DATABASE="/srv/database/database.sqlite" \ | ||
--env CACHE_DRIVER=file \ | ||
--env SESSION_DRIVER=file \ | ||
--env AUTHENTICATION_GUARD=web-guard \ | ||
--env WEBAUTHN_NAME=2FAuth \ | ||
--env BROADCAST_DRIVER=log \ | ||
--env QUEUE_DRIVER=sync \ | ||
--env SESSION_LIFETIME=120 \ | ||
--env REDIS_HOST=127.0.0.1 \ | ||
--env REDIS_PASSWORD= \ | ||
--env REDIS_PORT=6379 \ | ||
--env PUSHER_APP_ID= \ | ||
--env PUSHER_APP_KEY= \ | ||
--env PUSHER_APP_SECRET= \ | ||
--env PUSHER_APP_CLUSTER=mt1 \ | ||
--env MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" \ | ||
--env MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" \ | ||
--env MIX_ENV=local | ||
--env MAIL_DRIVER=SMTP \ | ||
--env MAIL_HOST=smtp.example.com \ | ||
--env MAIL_PORT=587 # STARTTLS \ | ||
--env MAIL_USERNAME[email protected] \ | ||
--env MAIL_PASSWORD=password1234 \ | ||
--env MAIL_FROM_NAME=2FAuth \ | ||
--env MAIL_FROM_ADDRESS[email protected] \ | ||
--env-file=%/state/app.env \ | ||
--env DB_DATABASE=database.sqlite \ | ||
${2FAUTH_IMAGE} | ||
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/2fauth-app.ctr-id -t 10 | ||
ExecReload=/usr/bin/podman kill -s HUP 2fauth-app | ||
|