https://github.com/nocodb/nginx-secure
https://github.com/nocodb/nginx-secure
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nocodb/nginx-secure
- Owner: nocodb
- Created: 2024-04-20T18:43:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-17T10:59:35.000Z (over 1 year ago)
- Last Synced: 2025-05-07T20:03:53.213Z (8 months ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 7
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nginx Secure
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.
## Features
- **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.
## Usage
You can use the pre-built Docker image `nocodb/nginx-secure` as:
```yaml
services:
nginx:
image: nocodb/nginx-secure
ports:
- "80:80"
- "443:443"
volumes:
- ./certs:/etc/letsencrypt/
restart: unless-stopped
env_file: docker.env
application:
image: your-application
restart: unless-stopped
```
Checkout `docker.env.sample` for the required environment variables.
## Building the Image
If you need custom nginx configurations, you can build the image yourself:
1. Clone this repository.
2. Modify the `default.conf.template` file as needed.
3. Run `docker build -t nginx-secure .` in the repository root.