tmphosts is a lightweight, temporary reverse proxy solution that allows users to easily reroute traffic to different hosts by modifying their local hosts file. Built on Nginx, tmphosts also seamlessly handles HTTP to HTTPS redirection, ensuring a secure browsing experience.
docker run -d --name tmphosts -p 80:80 -p 443:443 --restart always huangsen365/tmphosts
git clone https://github.com/huangsen365/tmphosts.git
cd tmphosts
docker build -t tmphosts .
docker run -d --name tmphosts -p 80:80 -p 443:443 --restart always tmphosts
Modify your local hosts file to add entries pointing to the public IP address where tmphosts is running (e.g., 123.123.123.123 example.com):
C:\Windows\System32\drivers\etc\hosts using a text editor with administrator privileges./etc/hosts using a text editor with root or sudo privileges.Access the websites using their HTTPS versions (e.g., https://example.com).
This project is licensed under the MIT License. See the LICENSE file for more information.
Content type
Image
Digest
sha256:d71572a4d…
Size
19.5 MB
Last updated
over 2 years ago
docker pull huangsen365/tmphosts