This repository provides a Dockerized Nginx setup that integrates with Certbot for automatic SSL certificate deployment. It's designed to facilitate secure HTTP and HTTPS traffic forwarding with minimal manual configuration.
- Automatic SSL Certificates: Utilizes Certbot to automatically retrieve and renew SSL certificates from Let's Encrypt.
- Nginx as a Reverse Proxy: Configured to act as a reverse proxy, forwarding requests to your application.
- Dockerized for Ease of Deployment: Everything runs inside Docker, ensuring consistency across different environments.
You can use the pre-built Docker imagenocodb/nginx-secure as:
services:nginx:image:nocodb/nginx-secureports: -"80:80" -"443:443"volumes: -./certs:/etc/letsencrypt/restart:unless-stoppedenv_file:docker.envapplication:image:your-applicationrestart:unless-stopped
Checkoutdocker.env.sample for the required environment variables.
If you need custom nginx configurations, you can build the image yourself:
- Clone this repository.
- Modify the
default.conf.template file as needed. - Run
docker build -t nginx-secure . in the repository root.