mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-21 15:53:30 +01:00
chore: Add Systemd config for self-hosted server (#1879)
This commit is contained in:
parent
ae841bef9b
commit
1ecc1d20e9
29
systemd/atuin-server.service
Normal file
29
systemd/atuin-server.service
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Start the Atuin server syncing service
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target systemd-networkd-wait-online.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=atuin server start
|
||||||
|
Restart=on-failure
|
||||||
|
User=atuin
|
||||||
|
Group=atuin
|
||||||
|
|
||||||
|
Environment=ATUIN_CONFIG_DIR=/etc/atuin
|
||||||
|
ReadWritePaths=/etc/atuin
|
||||||
|
|
||||||
|
# Hardening options
|
||||||
|
CapabilityBoundingSet=
|
||||||
|
AmbientCapabilities=
|
||||||
|
NoNewPrivileges=true
|
||||||
|
ProtectHome=true
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
PrivateTmp=true
|
||||||
|
PrivateDevices=true
|
||||||
|
LockPersonality=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
1
systemd/atuin-server.sysusers
Normal file
1
systemd/atuin-server.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
u atuin - "Atuin synchronized shell history"
|
Loading…
Reference in New Issue
Block a user