From af62ec5cc0174d323b65dcae02f849621cb0f09b Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 10 May 2018 04:32:01 -0400 Subject: [PATCH] Note about adding permisions to binary (#3936) in regards to binding to lower ports than 1024 --- contrib/systemd/gitea.service | 5 +++++ 1 file changed, 5 insertions(+) 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