mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-31 04:32:20 -06:00 
			
		
		
		
	* add haproxy, lighttpd, traefik, caddy * adjust nginx buffer sizes for way faster downloads * move unix-socket to /dev/shm/ because fedora sets PrivateTmp=true for nginx (orz)
		
			
				
	
	
		
			25 lines
		
	
	
		
			924 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			924 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # example usage for benchmarking:
 | |
| #
 | |
| #   taskset -c 1 lighttpd -Df ~/dev/copyparty/contrib/lighttpd/subdomain.conf
 | |
| #
 | |
| # lighttpd can connect to copyparty using either tcp (127.0.0.1)
 | |
| # or a unix-socket, but unix-sockets are 37% faster because
 | |
| # lighttpd doesn't reuse tcp connections, so we're doing unix-sockets
 | |
| #
 | |
| # this means we must run copyparty with one of the following:
 | |
| #
 | |
| #   -i unix:777:/dev/shm/party.sock
 | |
| #   -i unix:777:/dev/shm/party.sock,127.0.0.1
 | |
| #
 | |
| # on fedora/rhel, remember to setsebool -P httpd_can_network_connect 1
 | |
| 
 | |
| server.port = 80
 | |
| server.document-root = "/var/empty"
 | |
| server.upload-dirs = ( "/dev/shm", "/tmp" )
 | |
| server.modules = ( "mod_proxy" )
 | |
| proxy.forwarded = ( "for" => 1, "proto" => 1 )
 | |
| proxy.server = ( "" => ( ( "host" => "/dev/shm/party.sock" ) ) )
 | |
| 
 | |
| # if you really need to use tcp instead of unix-sockets, do this instead:
 | |
| #proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "3923" ) ) )
 |