From efc0363f4b7b0b9cb446984bbf91603897354fb6 Mon Sep 17 00:00:00 2001 From: Leo Maroni Date: Tue, 19 May 2020 10:27:52 +0200 Subject: [PATCH] Added CAP_NET_BIND_SERVICE to gitea.service to allow binding to ports lower than 1024 --- templates/gitea.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/gitea.service.j2 b/templates/gitea.service.j2 index c746cc4..7b59386 100644 --- a/templates/gitea.service.j2 +++ b/templates/gitea.service.j2 @@ -7,6 +7,7 @@ User={{ gitea_user }} ExecStart=/usr/local/bin/gitea web -c /etc/gitea/gitea.ini Restart=on-failure WorkingDirectory={{ gitea_home }} +AmbientCapabilities=CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target