Releases: Zekfad/dev-mirror
Releases · Zekfad/dev-mirror
1.2.0
- Add
Access-Control-Expose-Headers
header if none is provided by server. - Rename environment variables:
SERVER_SCHEME
->REMOTE_SCHEME
SERVER_HOST
->REMOTE_HOST
SERVER_USERNAME
->REMOTE_USERNAME
SERVER_PASSWORD
->REMOTE_PASSWORD
SERVER_POST
->REMOTE_POST
LOCAL_BIND_IP
->LOCAL_HOST
- Now you can use just
LOCAL_URI
andREMOTE_URI
same asHTTP_PROXY
,
this simplifies usage from console.
1.1.2
1.1.1
1.1.0
1.0.1 - Initial release
Features
- Target server authentication.
- Local server authentication.
- Spoofing referrer.
- CORS bypass.
Usage
Use environmental variables or .env
file in working directory:
# Remote HTTP(S) server
SERVER_SCHEME = https
SERVER_HOST = example.com
SERVER_PORT = 443
# Remote server HTTP Basic auth
SERVER_USERNAME = user
SERVER_PASSWORD = passw0rd
# Local HTTP server
LOCAL_BIND_IP = 127.0.0.1
LOCAL_PORT = 8080
# Local server HTTP Basic auth
LOCAL_USERNAME = user
LOCAL_PASSWORD = passw0rd
Notes
Keep in mind, that if you have local server authentication, you wont be able to send authentication details to remote server though the mirror.
That means, that configuration where remote server requires authentication and mirror has no remote credentials, but has local authentication is invalid. To fix this add remote credentials (recommended), or disable local authentication.