Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piger/nginx-lab
A virtual lab to test nginx configurations.
https://github.com/piger/nginx-lab
docker nginx reverse-proxy
Last synced: about 6 hours ago
JSON representation
A virtual lab to test nginx configurations.
- Host: GitHub
- URL: https://github.com/piger/nginx-lab
- Owner: piger
- Created: 2022-04-08T11:58:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T10:05:23.000Z (about 1 year ago)
- Last Synced: 2024-04-22T15:43:55.495Z (7 months ago)
- Topics: docker, nginx, reverse-proxy
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An nginx lab in Docker
This repository contains a virtual "lab" that can be used to experiment with Nginx; it sets up two reverse proxies
(which can simulate having Cloudflare in front of your server) and a simple backend application.## Requirements
- Docker
- docker-compose## Usage
Run `docker-compose up` to spin up the whole stack, then your main (outer) frontend can be accessed on `localhost:8080`
and your secondary (inner) frontend on `localhost:9090`; the backend application is bound to the `/app` location on both
proxies.### TLS support
The two proxies are configured with self-signed TLS certificates created at build time for the wildcard
domain `*.homelab.dev`.To send an HTTPS request to the outer proxy with `curl`:
```
$ curl -k --resolve outer-proxy.homelab.dev:8443:127.0.0.1 https://outer-proxy.homelab.dev:8443
```