mirror of
https://github.com/9001/copyparty.git
synced 2025-08-16 00:22:13 -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
552 B
Plaintext
25 lines
552 B
Plaintext
# this config is essentially two separate examples;
|
|
#
|
|
# foo1 connects to copyparty using tcp, and
|
|
# foo2 uses unix-sockets for 27% higher performance
|
|
#
|
|
# to use foo2 you 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
|
|
|
|
defaults
|
|
mode http
|
|
option forwardfor
|
|
timeout connect 1s
|
|
timeout client 610s
|
|
timeout server 610s
|
|
|
|
listen foo1
|
|
bind *:8081
|
|
server srv1 127.0.0.1:3923 maxconn 512
|
|
|
|
listen foo2
|
|
bind *:8082
|
|
server srv1 /dev/shm/party.sock maxconn 512
|