https://github.com/echoomy/nginx-reverse-proxy
Reverse proxy based on Nginx
https://github.com/echoomy/nginx-reverse-proxy
compose docker nginx proxy
Last synced: 2 months ago
JSON representation
Reverse proxy based on Nginx
- Host: GitHub
- URL: https://github.com/echoomy/nginx-reverse-proxy
- Owner: echoomy
- Created: 2025-02-07T18:06:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T07:32:00.000Z (over 1 year ago)
- Last Synced: 2025-08-14T07:46:33.511Z (11 months ago)
- Topics: compose, docker, nginx, proxy
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Nginx Reverse Proxy
This repository contains the configuration for Nginx acting as a Reverse Proxy. It is assumed that when deployed, this web server will be the only application receiving requests from the external network.
## Deployment
The application is intended to run in a Docker container.
### Create Docker Volume
Create a `nginx-reverse-proxy-certificates` volume to store SSL certificates:
```bash
sudo docker volume create nginx-reverse-proxy-certificates
```
### Obtain SSL Certificates
Obtain Let's Encrypt certificates using the following command:
```bash
sudo docker run --rm -p 80:80 -v nginx-reverse-proxy-certificates:/etc/letsencrypt \
certbot/certbot certonly \
--standalone --non-interactive --agree-tos --preferred-challenges http \
-d example.com -d www.example.com \
--email support@example.com
```
### Configure Proxying for Docker Containers
The Nginx configuration file is located at `./configuration/nginx.conf`. Modify this file to suit your domain requirements and ensure that it correctly proxies requests to your target Docker containers.
### Start the Server
Start the server using Docker Compose with the following command:
```bash
sudo docker compose -f ./docker/compose.yaml up -d
```
## Author
Configured by Egor Chumichev. Feel free to modify this template.