run systemd unit as authelia user

pull/4982/head
feinedquirrel 2023-02-22 15:28:35 -07:00
parent f62b4d4cd3
commit a689e3037f
4 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@ Description=Authelia authentication and authorization server
After=multi-user.target After=multi-user.target
[Service] [Service]
User=authelia
Group=authelia
Environment=AUTHELIA_SERVER_DISABLE_HEALTHCHECK=true Environment=AUTHELIA_SERVER_DISABLE_HEALTHCHECK=true
ExecStart=/usr/bin/authelia --config /etc/authelia/configuration.yml ExecStart=/usr/bin/authelia --config /etc/authelia/configuration.yml
SyslogIdentifier=authelia SyslogIdentifier=authelia

View File

@ -0,0 +1,3 @@
#Type Name ID GECOS Home directory Shell
u authelia - "authelia user"
m authelia redis

View File

@ -0,0 +1 @@
e /etc/authelia 0700 authelia authelia

View File

@ -3,6 +3,8 @@ Description=Authelia authentication and authorization server
After=multi-user.target After=multi-user.target
[Service] [Service]
User=authelia
Group=authelia
Environment=AUTHELIA_SERVER_DISABLE_HEALTHCHECK=true Environment=AUTHELIA_SERVER_DISABLE_HEALTHCHECK=true
ExecStart=/usr/bin/authelia --config /etc/authelia/%i.yml ExecStart=/usr/bin/authelia --config /etc/authelia/%i.yml
SyslogIdentifier=authelia-%i SyslogIdentifier=authelia-%i