Added CAP_NET_BIND_SERVICE to gitea.service to allow binding to ports
lower than 1024
This commit is contained in:
parent
c3891fc4b3
commit
efc0363f4b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue