summarylogtreecommitdiffstats
path: root/systemd.service
diff options
context:
space:
mode:
authorMatt Cuneo2024-01-09 02:15:59 +1100
committerMatt Cuneo2024-01-09 02:15:59 +1100
commit7792ae570ba4a78d39530d9419d55b11dcf5bd2c (patch)
treebb25bd632b82f9be39140aa65d3f3c7deb10f602 /systemd.service
parentc3bbdb2047756b905f7a04830d39be33f9fbe6c2 (diff)
downloadaur-7792ae570ba4a78d39530d9419d55b11dcf5bd2c.tar.gz
Improvements to systemd unit
Diffstat (limited to 'systemd.service')
-rw-r--r--systemd.service10
1 files changed, 2 insertions, 8 deletions
diff --git a/systemd.service b/systemd.service
index 5e2e5beff84c..5ca81fed09bc 100644
--- a/systemd.service
+++ b/systemd.service
@@ -4,16 +4,10 @@ After=network.target
[Service]
User=photon-lemmy
-WorkingDirectory=/etc/share/webapps/photon-lemmy
+WorkingDirectory=/usr/share/photon-lemmy
ExecStart=/usr/bin/node build
-EnvironmentFile=/etc/webapps/photon-lemmy/config.env
+EnvironmentFile=/etc/photon-lemmy/config.env
Restart=on-failure
-# Hardening
-ProtectSystem=yes
-PrivateTmp=true
-MemoryDenyWriteExecute=true
-NoNewPrivileges=true
-
[Install]
WantedBy=multi-user.target