Skip to content

qressy/nginx-proxy-automation

 
 

Repository files navigation

NGINX Proxy Automation 🔥

How to start 🔰

shell script

  1. 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

  1. 🚀 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 ☝️
  1. 🧪 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.

Trouble shoot

  • 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

Video Tutorial 🎥

I made a tutorial video to walk you through this project:

youtube

AWS EC2

Digital Ocean Droplet

OVH

Server Automation 🚀

Make user you try our Server Automation

https://github.com/evertramos/server-automation

Further information 📓

For more installation details please click here.

Supporting ♥️

Patreon image

List of all supporters.

Code Contributors

About

Automated docker nginx proxy integrated with letsencrypt.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%