Skip to content

Commit

Permalink
Add Systemd config for self-hosted server
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed May 26, 2024
1 parent c330636 commit 1054bc5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions systemd/atuin-server.service
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions systemd/atuin-server.sysusers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
u atuin - "Atuin synchronized shell history"

0 comments on commit 1054bc5

Please sign in to comment.