mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	Disable PrivateDevices in systemd as it doesn't work for some devices (#1990)
This commit is contained in:
		
							parent
							
								
									e20779e405
								
							
						
					
					
						commit
						fd3fafa50c
					
				
							
								
								
									
										4
									
								
								dist/init/linux-systemd/caddy.service
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/init/linux-systemd/caddy.service
									
									
									
									
										vendored
									
									
								
							@ -30,8 +30,8 @@ LimitNPROC=512
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
; Use private /tmp and /var/tmp, which are discarded after caddy stops.
 | 
					; Use private /tmp and /var/tmp, which are discarded after caddy stops.
 | 
				
			||||||
PrivateTmp=true
 | 
					PrivateTmp=true
 | 
				
			||||||
; Use a minimal /dev
 | 
					; Use a minimal /dev (May bring additional security if switched to 'true', but it may not work on Raspberry Pi's or other devices, so it has been disabled in this dist.)
 | 
				
			||||||
PrivateDevices=true
 | 
					PrivateDevices=false
 | 
				
			||||||
; Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
 | 
					; Hide /home, /root, and /run/user. Nobody will steal your SSH-keys.
 | 
				
			||||||
ProtectHome=true
 | 
					ProtectHome=true
 | 
				
			||||||
; Make /usr, /boot, /etc and possibly some more folders read-only.
 | 
					; Make /usr, /boot, /etc and possibly some more folders read-only.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user