summarylogtreecommitdiffstats
path: root/systemd.service
blob: 5e2e5beff84cd331a99e3ac7cb4509bfca5e1101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Photon Lemmy - An alternative front end to Lemmy
After=network.target

[Service]
User=photon-lemmy
WorkingDirectory=/etc/share/webapps/photon-lemmy
ExecStart=/usr/bin/node build
EnvironmentFile=/etc/webapps/photon-lemmy/config.env
Restart=on-failure

# Hardening
ProtectSystem=yes
PrivateTmp=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target