1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

Added CAP_NET_BIND_SERVICE to gitea.service to allow binding to ports

lower than 1024
This commit is contained in:
Leo Maroni 2020-05-19 10:27:52 +02:00 committed by Thomas Maurice
parent c3891fc4b3
commit efc0363f4b

View file

@ -7,6 +7,7 @@ User={{ gitea_user }}
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/gitea.ini ExecStart=/usr/local/bin/gitea web -c /etc/gitea/gitea.ini
Restart=on-failure Restart=on-failure
WorkingDirectory={{ gitea_home }} WorkingDirectory={{ gitea_home }}
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target