mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Note about adding permisions to binary (#3936)
in regards to binding to lower ports than 1024
This commit is contained in:
		
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							2efdb0907c
						
					
				
				
					commit
					af62ec5cc0
				
			@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user