summarylogtreecommitdiffstats
path: root/gaia-hub.service
diff options
context:
space:
mode:
Diffstat (limited to 'gaia-hub.service')
-rw-r--r--gaia-hub.service28
1 files changed, 28 insertions, 0 deletions
diff --git a/gaia-hub.service b/gaia-hub.service
new file mode 100644
index 000000000000..800fcbd8c2c0
--- /dev/null
+++ b/gaia-hub.service
@@ -0,0 +1,28 @@
+[Unit]
+Description=Gaia Hub decentralized high-performance storage system
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+DynamicUser=true
+User=gaia
+Group=gaia
+WorkingDirectory=/usr/lib/node_modules/gaia-hub
+Environment=NODE_ENV="production"
+ExecStart=/usr/bin/gaia-hub
+
+# Hardening options
+CapabilityBoundingSet=
+AmbientCapabilities=
+NoNewPrivileges=true
+ProtectHome=true
+ProtectSystem=full
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+PrivateTmp=true
+LockPersonality=true
+
+[Install]
+WantedBy=multi-user.target