mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
16 lines
583 B
Plaintext
16 lines
583 B
Plaintext
# when running copyparty behind a reverse proxy,
|
|
# the following arguments are recommended:
|
|
#
|
|
# --http-only lower latency on initial connection
|
|
# -i 127.0.0.1 only accept connections from nginx
|
|
#
|
|
# 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
|
|
ProxyPass "/stuff" "http://127.0.0.1:3923/stuff"
|
|
# do not specify ProxyPassReverse
|
|
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
|