Description
Users that attempt to install Gitea from binary on Fedora/Ubuntu/etc. may encounter several problems due to selinux. I'm not an expert on that, but I think we should add a couple of hints to the docs around this scenario.
Notes that might be useful:
-
setcap cap_net_bind_service=+ep /path/to/binary/gitea
will allow the exact version of gitea's executable to bind to privileged ports; this permits Gitea to bind directly to 443 without running as root. Upgrading Gitea (i.e. replacing the executable) will remove this capability and force the admin to run the command again. -
There's a number of considerations for running the service from
systemd
if selinux is active; if we can't provide a full recipe for enabling Gitea, we may leave some pointers about these limitations.
(I might do this myself if I ever get time to investigate this setup).