index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
scripts
/
systemd
/
gogs.service
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'scripts/systemd/gogs.service')
-rw-r--r--
scripts/systemd/gogs.service
4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service
index 9f105bf8..d9f12e30 100644
--- a/
scripts/systemd/gogs.service
+++ b/
scripts/systemd/gogs.service
@@ -18,6 +18,10 @@ WorkingDirectory=/home/git/gogs
ExecStart=/home/git/gogs/gogs web
Restart=always
Environment=USER=git HOME=/home/git
+# Hardening
+ProtectSystem=full
+PrivateDevices=yes
+PrivateTmp=yes
[Install]
WantedBy=multi-user.target