summaryrefslogtreecommitdiff
path: root/roles/vpn/templates/headscale.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vpn/templates/headscale.service.j2')
-rw-r--r--roles/vpn/templates/headscale.service.j226
1 files changed, 0 insertions, 26 deletions
diff --git a/roles/vpn/templates/headscale.service.j2 b/roles/vpn/templates/headscale.service.j2
deleted file mode 100644
index 46267f0..0000000
--- a/roles/vpn/templates/headscale.service.j2
+++ /dev/null
@@ -1,26 +0,0 @@
-[Unit]
-Description=headscale coordination server
-After=syslog.target
-After=network.target
-
-[Service]
-Type=simple
-Environment=GIN_MODE=release
-User={{ headscale_user_name }}
-Group={{ headscale_user_group }}
-ExecStart={{ headscale_binary_path }} serve
-ExecReload=kill -HUP $MAINPID
-Restart=always
-RestartSec=5
-
-# Optional security enhancements
-NoNewPrivileges=yes
-PrivateTmp=yes
-ProtectSystem=strict
-ProtectHome=yes
-ReadWritePaths={{ headscale_var_data_dir }} {{ headscale_pid_dir }}
-AmbientCapabilities=CAP_NET_BIND_SERVICE
-RuntimeDirectory={{ headscale_user_name }}
-
-[Install]
-WantedBy=multi-user.target