Skip to content

An Nginx reverse proxy behind a Wireguard client connection.

License

Notifications You must be signed in to change notification settings

rmayobre/wireguard-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wireguard Reverse Proxy

An Nginx reverse proxy behind a Wireguard client connection. This comes with Nginx Proxy Manager as an Web UI for managing proxy connections.

Installation

Before installing, make sure you have docker-compose installed to your machine.

Change the credentials for the Nginx Database. Go to the docker-compose.yml and edit the environment section.

Web App - snippet

DB_MYSQL_USER: "nginx"  # Change to match db
DB_MYSQL_PASSWORD: "CHANGE_ME" # Change to match db
DB_MYSQL_NAME: "nginx" # Change to match db

Database - snippet

MYSQL_ROOT_PASSWORD: 'CHANGE_ME' # Change to be secure
MYSQL_DATABASE: 'nginx' # Change to be secure; must match app
MYSQL_USER: 'nginx' # Change to be secure; must match app
MYSQL_PASSWORD: 'CHANGE_ME' # Change to be secure; must match app

Get a Wireguard peer configuration file from your Wireguard server. Rename it "wg0.conf" and place it in the /wireguard/ directory.

Run docker compose in the same directory as docker-compose.yml

docker-compose up -d

References

About

An Nginx reverse proxy behind a Wireguard client connection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages