- Clone this repository using the option --recurse-submodules
⚠️
git clone --recurse-submodules https://github.com/qressy/nginx-proxy-automation.git proxy
We use submodule for basescript
- 🚀 Run the script 'fresh_start.sh' from the ./proxy/bin folder
cd proxy/bin && ./fresh-start.sh --yes -e your_email@domain --skip-docker-image-check
Update the email above with your real e-mail address
2.1 ⭐ Start the nginx-proxy, docker-gen, letsencrypt(optional) docker containers (comment out letsencrypt container if not needed )
cd proxy && docker compose up -d
- This is a fork specific change ☝️
- 🧪 Test the proxy
docker run -dit -e VIRTUAL_HOST=your.domain.com --network=proxy --name test-web httpd:alpine
or simply run:
./test.sh your.domain.com
Use your own domain name when testing this proxy and make sure your DNS is correctly configured.
- while running docker compose up ( for proxy container )
Error response from daemon: driver failed programming external connectivity on endpoint proxy-web-auto (2def268a2143a64bfd06be3e1952afd54b6e644afc8dff9c666394275287f389): failed to bind port 0.0.0.0:80/tcp: Error starting userland proxy: error while calling PortManager.AddPort(): cannot expose privileged port 80, you can add 'net.ipv4.ip_unprivileged_port_start=80' to /etc/sysctl.conf (currently 1024), or set CAP_NET_BIND_SERVICE on rootlesskit binary, or choose a larger port number (>= 1024): listen tcp4 0.0.0.0:80: bind: permission denied
Solution:
# add 'net.ipv4.ip_unprivileged_port_start=80' to /etc/sysctl.conf
# to apply the change
sudo sysctl -p
# verify the change
sysctl net.ipv4.ip_unprivileged_port_start
I made a tutorial video to walk you through this project:
Make user you try our Server Automation
https://github.com/evertramos/server-automation
For more installation details please click here.