diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-05-10 04:32:01 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-10 16:32:01 +0800 |
commit | af62ec5cc0174d323b65dcae02f849621cb0f09b (patch) | |
tree | 71fd80e9f885d2929a00ce4a87c80320e3d99221 /contrib/systemd | |
parent | 2efdb0907c751e463eca90eec301a7b733d0ba5f (diff) | |
download | gitea-af62ec5cc0174d323b65dcae02f849621cb0f09b.tar.gz gitea-af62ec5cc0174d323b65dcae02f849621cb0f09b.zip |
Note about adding permisions to binary (#3936)
in regards to binding to lower ports than 1024
Diffstat (limited to 'contrib/systemd')
-rw-r--r-- | contrib/systemd/gitea.service | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service index 7c09fa3213..8c627e7b5c 100644 --- a/contrib/systemd/gitea.service +++ b/contrib/systemd/gitea.service @@ -22,6 +22,11 @@ WorkingDirectory=/home/git/gitea ExecStart=/home/git/gitea/gitea web Restart=always Environment=USER=git HOME=/home/git +# If you want to bind Gitea to a port below 1024 uncomment +# the two values below +### +#CapabilityBoundingSet=CAP_NET_BIND_SERVICE +#AmbientCapabilities=CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target |