summarylogtreecommitdiffstats
path: root/gotrue.service
diff options
context:
space:
mode:
authormekyt2024-02-16 23:29:03 +0100
committermekyt2024-02-16 23:29:03 +0100
commitfa2824b3dc6896c3cbcb088cb6ffdffb533950fb (patch)
tree143bc8ef5da6bd601cdd7c185086962912d83b30 /gotrue.service
downloadaur-fa2824b3dc6896c3cbcb088cb6ffdffb533950fb.tar.gz
feat: initialize gotrue 2.142.0
Diffstat (limited to 'gotrue.service')
-rw-r--r--gotrue.service34
1 files changed, 34 insertions, 0 deletions
diff --git a/gotrue.service b/gotrue.service
new file mode 100644
index 000000000000..529a9f51fea6
--- /dev/null
+++ b/gotrue.service
@@ -0,0 +1,34 @@
+[Unit]
+Description=A JWT based API for managing users and issuing JWT tokens
+Documentation=https://github.com/supabase/gotrue
+After=network-online.target
+
+[Service]
+User=gotrue
+Group=gotrue
+PrivateTmp=true
+ProtectHome=true
+ProtectSystem=strict
+ProtectKernelTunables=true
+ProtectHostname=true
+ProtectClock=true
+ProtectControlGroups=true
+RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+NoNewPrivileges=true
+PrivateDevices=true
+DeviceAllow=/dev/syslog
+RestrictSUIDSGID=true
+ProtectKernelModules=true
+MemoryDenyWriteExecute=true
+RestrictNamespaces=true
+RestrictRealtime=true
+LockPersonality=true
+TimeoutStopSec=7s
+KillMode=mixed
+KillSignal=SIGTERM
+Restart=on-failure
+RestartPreventExitStatus=2
+ExecStart=/usr/bin/nv /etc/gotrue/config.env /usr/bin/gotrue
+
+[Install]
+WantedBy=multi-user.target