🔧 Use environment variables file in systemd service config

This commit is contained in:
Maxim Lebedev 2023-01-16 16:13:18 +06:00
parent ddc73036a8
commit 43af05a02b
Signed by: toby3d
GPG key ID: 1F14E25B7C119FC5

View file

@ -1,18 +1,19 @@
[Unit]
After=network.target
After=syslog.target
Description=Personal IndieAuth server instance
Documentation=https://indieauth.net/source/
After=syslog.target
After=network.target
[Service]
EnvironmentFile=/etc/indieauth/env
ExecStart=/usr/local/bin/indieauth
Group=indieweb
Restart=always
RestartSec=2s
Type=simple
User=indieweb
Group=indieweb
WorkingDirectory=/var/lib/indieauth/
ExecStart=/usr/local/bin/indieauth --config=/etc/indieauth/config.yml
Restart=always
[Install]
Alias=indieauth
WantedBy=multi-user.target
WantedBy=multi-user.target