mirror of
https://github.com/gogs/gogs.git
synced 2025-05-22 07:21:06 +00:00
scripts: apply hardening for systemd service (#5332)
This commit is contained in:
parent
8bbf0293f5
commit
66016b8499
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user