mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
796ea1dde9
so we can persist password reset codes, OIDC auth sessions and tokens. These features will also work in multi-node setups without sicky sessions now Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
28 lines
601 B
Desktop File
28 lines
601 B
Desktop File
[Unit]
|
|
Description=SFTPGo Server
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=sftpgo
|
|
Group=sftpgo
|
|
Type=simple
|
|
WorkingDirectory=/etc/sftpgo
|
|
Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/
|
|
Environment=SFTPGO_LOG_FILE_PATH=
|
|
EnvironmentFile=-/etc/sftpgo/sftpgo.env
|
|
ExecStart=/usr/bin/sftpgo serve
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
LimitNOFILE=8192
|
|
KillMode=mixed
|
|
PrivateTmp=true
|
|
Restart=always
|
|
RestartSec=10s
|
|
NoNewPrivileges=yes
|
|
PrivateDevices=yes
|
|
DevicePolicy=closed
|
|
ProtectSystem=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|