summarylogtreecommitdiffstats
path: root/systemd.service
blob: b16c852b0029a167cf4eebf478141dc35bb60df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=Lemmy UI - Web frontend for Lemmy
After=lemmy.service
Before=nginx.service

[Service]
User=lemmy
Group=lemmy
WorkingDirectory=/usr/share/lemmy-ui
ExecStart=/usr/bin/node dist/js/server.js
EnvironmentFile=-/etc/lemmy/lemmy-ui.env
Restart=on-failure

# Hardening
ProtectSystem=full
PrivateTmp=true
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target