summarylogtreecommitdiffstats
path: root/chatbot-ui-legacy.service
blob: d5c0e4592a78abdbfd7790f47c141c302f681f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[Unit]
Description=An open source ChatGPT UI (lecacy version)
After=network.target

[Service]
Type=exec

Environment=NODE_ENV=production

User=chatbot-ui
Group=chatbot-ui

WorkingDirectory=/usr/share/webapps/chatbot-ui-legacy-git
ExecStart=/usr/bin/node node_modules/.bin/next start

CapabilityBoundingSet=
NoNewPrivileges=true
PrivateDevices=true
RemoveIPC=true
LockPersonality=true

ProtectControlGroups=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectClock=true
ProtectHostname=true
ProtectProc=noaccess

RestrictRealtime=true
RestrictSUIDSGID=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6

ProtectSystem=strict
ProtectHome=true
PrivateTmp=true

SystemCallArchitectures=native
SystemCallFilter=@system-service @pkey

[Install]
WantedBy=multi-user.target