Browse Source

Note about adding permisions to binary (#3936)

in regards to binding to lower ports than 1024
tags/v1.21.12.1
techknowlogick Lunny Xiao 7 years ago
parent
commit
af62ec5cc0
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      contrib/systemd/gitea.service

+ 5
- 0
contrib/systemd/gitea.service View File

@@ -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

Loading…
Cancel
Save