mirror of
https://github.com/9001/copyparty.git
synced 2026-02-27 14:03:10 -07:00
1.1 KiB
1.1 KiB
rust-rpxy for copyparty
Configuration and testing files for using rust-rpxy as a reverse proxy with copyparty.
Files
rpxy.toml- rust-rpxy sample configuration filetest_config.sh- Script to validate and test the configuration
Usage
Quick Test
Run the validation script to check the rpxy configuration:
./test_config.sh
Full Functional Test
To test the complete proxy functionality:
-
Start copyparty server:
copyparty -p 3923 -
Start rust-rpxy with the configuration:
podman run -d --name rpxy-test-container -p 127.0.0.1:8080:8080 -p 127.0.0.1:8443:8443 -v /RPXY_PATH/rpxy.toml:/etc/rpxy.toml:ro,z -v /CERTS_PATH/certs:/certs:ro,z -e LOG_TO_FILE=false -e HOST_USER=daemon -e HOST_UID=1 -e HOST_GID=1 ghcr.io/junkurihara/rust-rpxy:nightly-s2n -
Access the service through the proxy (by default on port 8080):
curl http://localhost:8080/
TLS
Check the sources of test_config.sh to see how to generate test TLS certificates.
You enable TLS by uncommenting the tls section in rpxy.toml.