{"id":13558549,"url":"https://github.com/Neilpang/letsproxy","last_synced_at":"2025-04-03T13:31:34.587Z","repository":{"id":44582472,"uuid":"194106460","full_name":"Neilpang/letsproxy","owner":"Neilpang","description":"nginx reverse auto proxy with free ssl certs by acme.sh","archived":false,"fork":false,"pushed_at":"2025-01-10T17:26:03.000Z","size":29,"stargazers_count":146,"open_issues_count":4,"forks_count":43,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T00:11:13.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/Neilpang.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-27T14:04:33.000Z","updated_at":"2025-02-02T23:44:21.000Z","dependencies_parsed_at":"2025-01-25T21:48:11.097Z","dependency_job_id":"f2882a19-9991-4a07-a313-55804e36d3a0","html_url":"https://github.com/Neilpang/letsproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neilpang%2Fletsproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neilpang%2Fletsproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neilpang%2Fletsproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neilpang%2Fletsproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neilpang","download_url":"https://codeload.github.com/Neilpang/letsproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247009628,"owners_count":20868581,"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":[],"created_at":"2024-08-01T12:05:01.124Z","updated_at":"2025-04-03T13:31:34.300Z","avatar_url":"https://github.com/Neilpang.png","language":"Dockerfile","funding_links":[],"categories":["Shell","others"],"sub_categories":[],"readme":"Based on https://github.com/nginx-proxy/nginx-proxy\n\nA new env varaible `ENABLE_ACME` is added to use acme.sh to generate free ssl cert from letsencrypt.\n\nAll the other options are the same as the upstream project.\nIt's very easy to use:\n\n### 1. Run nginx reverse proxy\n\n```sh\ndocker run  \\\n-p 80:80 \\\n-p 443:443 \\\n-it  -d --rm  \\\n-v /var/run/docker.sock:/tmp/docker.sock:ro  \\\n-v $(pwd)/proxy/certs:/etc/nginx/certs \\\n-v $(pwd)/proxy/acme:/acmecerts \\\n-v $(pwd)/proxy/conf.d:/etc/nginx/conf.d \\\n-v $(pwd)/vhost.d:/etc/nginx/vhost.d \\\n-v $(pwd)/stream.d:/etc/nginx/stream.d \\\n-v $(pwd)/dhparam:/etc/nginx/dhparam \\\n--name proxy \\\nneilpang/letsproxy\n```\n\nIt's recommended to run with `--net=host` option, like:\n\n```sh\ndocker run  \\\n-it  -d --rm  \\\n-v /var/run/docker.sock:/tmp/docker.sock:ro  \\\n-v $(pwd)/proxy/certs:/etc/nginx/certs \\\n-v $(pwd)/proxy/acme:/acmecerts \\\n-v $(pwd)/proxy/conf.d:/etc/nginx/conf.d \\\n-v $(pwd)/vhost.d:/etc/nginx/vhost.d \\\n-v $(pwd)/stream.d:/etc/nginx/stream.d \\\n-v $(pwd)/dhparam:/etc/nginx/dhparam \\\n--name proxy \\\n--net=host \\\nneilpang/letsproxy\n```\n\nFor a docker compose v2 or v3 project, every project has a dedicated network, so, you must use `--net=host` option,  so that it can proxy any projects on you machine.\n\n\n#### Docker Compose\n```yaml\nversion: '2'\n\nservices:\n  letsproxy:\n    image: neilpang/letsproxy\n    ports:\n      - \"80:80\"\n      - \"443:443\"\n      volumes:\n        - /var/run/docker.sock:/tmp/docker.sock:ro\n        - ./proxy/certs:/etc/nginx/certs\n        - ./proxy/acme:/acmecerts\n        - ./proxy/conf.d:/etc/nginx/conf.d\n        - ./proxy/vhost.d:/etc/nginx/vhost.d \n        - ./proxy/stream.d:/etc/nginx/stream.d \n        - ./proxy/dhparam:/etc/nginx/dhparam \n      network_mode: \"host\"\n```\n\n\n### 2. Run an internal webserver\n\n```sh\ndocker run -itd --rm \\\n-e VIRTUAL_HOST=foo.bar.com \\\n-e ENABLE_ACME=true \\\nhttpd\n\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeilpang%2Fletsproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNeilpang%2Fletsproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeilpang%2Fletsproxy/lists"}