{"id":49422740,"url":"https://github.com/klutchell/fly-https-proxy","last_synced_at":"2026-04-29T07:07:28.492Z","repository":{"id":351923823,"uuid":"1170072847","full_name":"klutchell/fly-https-proxy","owner":"klutchell","description":"Lightweight HTTPS forward proxy on Fly.io using tinyproxy","archived":false,"fork":false,"pushed_at":"2026-04-17T03:10:32.000Z","size":6,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-17T05:15:33.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/klutchell.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-01T16:57:26.000Z","updated_at":"2026-03-01T16:57:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/klutchell/fly-https-proxy","commit_stats":null,"previous_names":["klutchell/fly-https-proxy"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/klutchell/fly-https-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Ffly-https-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Ffly-https-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Ffly-https-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Ffly-https-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klutchell","download_url":"https://codeload.github.com/klutchell/fly-https-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Ffly-https-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32414520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-29T07:07:27.352Z","updated_at":"2026-04-29T07:07:28.487Z","avatar_url":"https://github.com/klutchell.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# https-proxy-fly\n\nLightweight HTTPS forward proxy on Fly.io using tinyproxy.\nUseful as `HTTPS_PROXY` to route traffic through a different\negress IP/region.\n\n## Architecture\n\n```text\nClient (HTTPS_PROXY=https://user:pass@app.fly.dev)\n  → Fly.io edge (TLS termination, port 443)\n    → tinyproxy :8888 (BasicAuth + IP allowlist)\n      → CONNECT tunnel to destination\n```\n\n## Environment Variables\n\n| Variable | Source | Description |\n| -------- | ------ | ----------- |\n| `PROXY_USER` | `fly secrets` | Basic auth username |\n| `PROXY_PASS` | `fly secrets` | Basic auth password |\n| `ALLOWED_IPS` | `fly secrets` | Comma-separated IP allowlist |\n| `LOG_LEVEL` | `fly.toml [env]` | tinyproxy log level (default: `Connect`) |\n\n## Deploy\n\n```sh\ncp fly.toml.example fly.toml\n# Edit fly.toml: set app name and region\n\nfly apps create your-app-name\nfly secrets set PROXY_USER=myuser PROXY_PASS=mypass\nfly deploy\n# Decline dedicated IPs when prompted, then allocate shared IPs:\nfly ips allocate-v4 --shared\nfly ips allocate-v6\n# Fly creates 2 machines by default for HA; scale to 1 if not needed:\nfly scale count 1\n```\n\n## Test\n\n### Local\n\n```sh\ndocker compose -f docker-compose.test.yml up --build --abort-on-container-exit\n```\n\n### Remote\n\n```sh\ncurl -sf --proxy https://user:pass@your-app-name.fly.dev:443 https://httpbin.org/ip\n```\n\n## Usage\n\nSet `HTTPS_PROXY` on your remote application to route outbound\nHTTPS traffic through the proxy:\n\n```sh\nHTTPS_PROXY=https://user:pass@your-app-name.fly.dev:443\n```\n\nMost HTTP clients (curl, Python requests, Node.js, etc.) respect\nthis variable automatically. Some applications may use\n`https_proxy` (lowercase) instead.\n\n## Cost\n\nWith `auto_stop_machines = 'suspend'` and a shared IPv4, the\nmachine suspends when idle and only runs while handling traffic.\n\n| Component | Cost |\n| --------- | ---- |\n| Shared IPv4 + IPv6 | Free |\n| VM (suspended) | ~$0.15/GB/mo rootfs |\n| VM (running) | ~$2.32/mo if 24/7 |\n\nTypical cost for intermittent traffic: **under $1/mo**.\n\n## Development\n\n```sh\nnix develop  # provides flyctl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklutchell%2Ffly-https-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklutchell%2Ffly-https-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklutchell%2Ffly-https-proxy/lists"}