summaryrefslogtreecommitdiffstats
path: root/contrib/systemd/gitea.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/systemd/gitea.service')
-rw-r--r--contrib/systemd/gitea.service5
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