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)
30 lines
873 B
Plaintext
30 lines
873 B
Plaintext
# if you would like to use unix-sockets (recommended),
|
|
# 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
|
|
#
|
|
# if you are doing location-based proxying (such as `/stuff` below)
|
|
# you must run copyparty with --rp-loc=stuff
|
|
#
|
|
# on fedora/rhel, remember to setsebool -P httpd_can_network_connect 1
|
|
|
|
|
|
LoadModule proxy_module modules/mod_proxy.so
|
|
|
|
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|
|
# NOTE: do not specify ProxyPassReverse
|
|
|
|
|
|
##
|
|
## then, enable one of the below:
|
|
|
|
# use subdomain proxying to unix-socket (best)
|
|
ProxyPass "/" "unix:///dev/shm/party.sock|http://whatever/"
|
|
|
|
# use subdomain proxying to 127.0.0.1 (slower)
|
|
#ProxyPass "/" "http://127.0.0.1:3923/"
|
|
|
|
# use subpath proxying to 127.0.0.1 (slow and maybe buggy)
|
|
#ProxyPass "/stuff" "http://127.0.0.1:3923/stuff"
|