{"id":29227154,"url":"https://github.com/guillembonet/nginx-wg-proxy","last_synced_at":"2025-07-03T09:10:05.856Z","repository":{"id":65423880,"uuid":"590233194","full_name":"Guillembonet/nginx-wg-proxy","owner":"Guillembonet","description":"Small docker container which allows proxying http requests through a wireguard tunnel.","archived":false,"fork":false,"pushed_at":"2023-01-18T14:09:39.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-16T02:10:11.785Z","etag":null,"topics":["docker","go","nginx","nginx-proxy","proxy","wireguard"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/bunetz/nginx-wg-proxy","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Guillembonet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-17T23:52:04.000Z","updated_at":"2024-07-12T07:42:33.000Z","dependencies_parsed_at":"2023-02-10T15:30:42.259Z","dependency_job_id":null,"html_url":"https://github.com/Guillembonet/nginx-wg-proxy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Guillembonet/nginx-wg-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guillembonet%2Fnginx-wg-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guillembonet%2Fnginx-wg-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guillembonet%2Fnginx-wg-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guillembonet%2Fnginx-wg-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guillembonet","download_url":"https://codeload.github.com/Guillembonet/nginx-wg-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guillembonet%2Fnginx-wg-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263296638,"owners_count":23444499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","go","nginx","nginx-proxy","proxy","wireguard"],"created_at":"2025-07-03T09:10:04.428Z","updated_at":"2025-07-03T09:10:05.768Z","avatar_url":"https://github.com/Guillembonet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-wg-proxy\n\n[![Docker Version](https://img.shields.io/docker/v/bunetz/nginx-wg-proxy?sort=date)](https://hub.docker.com/r/bunetz/nginx-wg-proxy)\n[![Docker Pulls](https://img.shields.io/docker/pulls/bunetz/nginx-wg-proxy)](https://hub.docker.com/r/bunetz/nginx-wg-proxy)\n\n### **This code has been almost fully generated by Chat GPT ([conversation here](https://sharegpt.com/c/wrLCMpx)).**\n## Description\nSmall docker container which allows proxying http requests through a wireguard tunnel. Useful to expose your home computer local app with a public endpoint.\n\n## Usage\nThe container needs to run with `NET_ADMIN` capability enabled, it doesn't need to run with host networking.\n\n1. Once the container is running check logs to copy the wireguard configuration to your peer. Copy the contents of:\n```\n*** Wireguard config for peer ***\n\u003ccontents\u003e\n*********      End      *********\n```\n2. Paste it in a file named `wg0.conf`\n3. Run `sudo wg-quick up ./wg0.conf` in the file location\n4. You may need to allow connections to your `nginxProxyPort` in the firewall.\n### Flags:\nYou need to set IP and port for wgEndpoint or WgPeerEndpoint.\n\nYou also need to specify values for the flags which don't have defaults.\n```\n  -nginxIP string\n        IP address for the nginx to listen on (default \"0.0.0.0\")\n  -nginxPort string\n        Port for the nginx to listen on (default \"8080\")\n  -nginxProxyPort string\n        Port for the nginx to proxy to (default \"8080\")\n  -nginxServerName string\n        Server name for the nginx server (default \"wg-proxy\")\n  -wgEndpointIP string\n        Peer endpoint IP used by the peer for the Wireguard tunnel\n  -wgEndpointPort string\n        Peer endpoint port used by the peer for the Wireguard tunnel (default \"52122\")\n  -wgIP string\n        IP address for the Wireguard interface (default \"10.0.0.1\")\n  -wgPeerAllowedIPs string\n        Allowed IPs for the peer for the Wireguard tunnel (default \"10.0.0.2/32\")\n  -wgPeerEndpointIP string\n        Peer endpoint IP used by the host for the Wireguard tunnel\n  -wgPeerEndpointPort string\n        Peer endpoint port used by the host for the Wireguard tunnel (default \"52122\")\n  -wgPeerPublicKey string\n        Public key of the peer for the Wireguard tunnel\n  -wgPeerWireguardPort string\n        Port for the Wireguard interface of the peer (default \"52122\")\n  -wgPort string\n        Port for the Wireguard interface (default \"52122\")\n  -wgPrivateKey string\n        Private key for the Wireguard interface\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillembonet%2Fnginx-wg-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillembonet%2Fnginx-wg-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillembonet%2Fnginx-wg-proxy/lists"}