{"id":26536925,"url":"https://github.com/sebogh/proxy-swagger","last_synced_at":"2026-04-14T15:31:59.256Z","repository":{"id":283069503,"uuid":"950594735","full_name":"sebogh/proxy-swagger","owner":"sebogh","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-20T18:45:56.000Z","size":2509,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T19:53:37.900Z","etag":null,"topics":["nginx","proxy","swagger-ui"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebogh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-03-18T12:00:34.000Z","updated_at":"2025-03-20T18:46:00.000Z","dependencies_parsed_at":"2025-06-16T19:42:01.842Z","dependency_job_id":"be93acf1-1ce6-423d-8969-d7679971f764","html_url":"https://github.com/sebogh/proxy-swagger","commit_stats":null,"previous_names":["sebogh/proxy-swagger"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sebogh/proxy-swagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebogh%2Fproxy-swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebogh%2Fproxy-swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebogh%2Fproxy-swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebogh%2Fproxy-swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebogh","download_url":"https://codeload.github.com/sebogh/proxy-swagger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebogh%2Fproxy-swagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31803219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["nginx","proxy","swagger-ui"],"created_at":"2025-03-21T22:17:39.161Z","updated_at":"2026-04-14T15:31:59.238Z","avatar_url":"https://github.com/sebogh.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# proxy-swagger\n\n## Motivation\n\nSwagger UI without CORS issues.\n\n## Solution\n\nCreate a Docker image (derived from Nginx), which serves the Swagger UI and\nproxies requests (e.g. for \"Try Out\") to the target service.\n\n## Getting Started\n\n````sh\nmake build\n````\n\nto create a `proxy-swagger` Docker image.\n\nThen run like:\n\n````sh\ndocker run --rm --network=host \\\n-v ${PWD}/openapi.yaml:/usr/share/nginx/html/openapi.yaml:ro \\\n--name proxy-swagger sebodockerhub/proxy-swagger\n````\n\nand surf to \u003chttp://localhost:3000\u003e.\n\nadapting `${PWD}/openapi.yaml` as needed.\n\n## dockerhub\n\n\u003chttps://hub.docker.com/repository/docker/sebodockerhub/proxy-swagger/general\u003e\n\n## ENV\n\n### API_URL\n\nOne may override the URL of the API by setting the `API_URL` environment\nvariable (default `http://localhost:8080`). For example, using port `9090`\n(instead of `8080`):\n\n````sh\ndocker run --rm --network=host \\\n-v ${PWD}/openapi.yaml:/usr/share/nginx/html/openapi.yaml:ro \\\n-e \"API_URL=http://localhost:9090\" \\\n--name proxy-swagger sebodockerhub/proxy-swagger\n````\n\nOr targeting a remote service (https://httpbin.org):\n\n````sh\ndocker run --rm --network=host \\\n-v ${PWD}/openapi.yaml:/usr/share/nginx/html/openapi.yaml:ro \\\n-e \"API_URL=https://httpbin.org\" \\\n--name proxy-swagger sebodockerhub/proxy-swagger\n````\n\n### SWAGGER_PORT\n\nOne may override the proxy- / Swagger-port by setting the `SWAGGER_PORT`\nenvironment variable (default `3000`). For example, using port `4711`:\n\n````sh\ndocker run --rm --network=host \\\n-v ${PWD}/openapi.yaml:/usr/share/nginx/html/openapi.yaml:ro \\\n-e \"SWAGGER_PORT=4711\" \\\n--name proxy-swagger sebodockerhub/proxy-swagger\n````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebogh%2Fproxy-swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebogh%2Fproxy-swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebogh%2Fproxy-swagger/lists"}