{"id":21444129,"url":"https://github.com/relvaner/vertx-web-proxy","last_synced_at":"2025-07-14T18:31:07.967Z","repository":{"id":39663405,"uuid":"188574470","full_name":"relvaner/vertx-web-proxy","owner":"relvaner","description":"A proxy implementation for Vert.x ported from Smiley's HTTP-Proxy-Servlet","archived":false,"fork":false,"pushed_at":"2024-06-16T12:19:39.000Z","size":110,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-17T00:40:09.091Z","etag":null,"topics":["java","proxy","reverse-proxy","vertx","vertx-web","vertx3"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/relvaner.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}},"created_at":"2019-05-25T14:14:49.000Z","updated_at":"2024-06-16T12:19:42.000Z","dependencies_parsed_at":"2022-09-20T07:41:29.997Z","dependency_job_id":null,"html_url":"https://github.com/relvaner/vertx-web-proxy","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/relvaner%2Fvertx-web-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relvaner%2Fvertx-web-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relvaner%2Fvertx-web-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relvaner%2Fvertx-web-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/relvaner","download_url":"https://codeload.github.com/relvaner/vertx-web-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225990432,"owners_count":17556155,"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":["java","proxy","reverse-proxy","vertx","vertx-web","vertx3"],"created_at":"2024-11-23T02:16:13.902Z","updated_at":"2024-11-23T02:16:14.556Z","avatar_url":"https://github.com/relvaner.png","language":"Java","readme":"## vertx-web-proxy - Example ##\r\n\r\n```java\r\nConcurrentCircuitBreakerForWebClient circuitBreaker = new ConcurrentCircuitBreakerForWebClient(vertx, \r\n\tnew CircuitBreakerOptions()\r\n\t\t.setMaxFailures(5)\r\n\t\t.setTimeout(2_000)\r\n\t\t.setResetTimeout(30_000));\r\n\r\npublic class ServerVerticle extends AbstractVerticle {\r\n\t@Override\r\n\tpublic void start() throws Exception {\r\n\t\tRouter router = Router.router(vertx);\r\n\t\trouter.route().handler(CookieHandler.create());\r\n\t\trouter.route().handler(BodyHandler.create()\r\n        \t\t.setBodyLimit(-1)\r\n\t\t\t.setHandleFileUploads(true)\r\n\t\t\t.setDeleteUploadedFilesOnEnd(true)\r\n\t\t\t.setMergeFormAttributes(true)\r\n        \t);\r\n\t\t\r\n\t\tproxyConfig(router);\r\n\t\t\r\n\t\tvertx.createHttpServer(new HttpServerOptions().setSsl(true).setKeyStoreOptions(\r\n\t\t        new JksOptions().setPath(\"server-keystore.jks\").setPassword(\"secret\")))\r\n\t\t\t.requestHandler(router)\r\n\t\t\t.listen(443);\r\n\t}\r\n\t\r\n\tpublic void proxyConfig(Router router) {\r\n\t\tWebClientOptions options = new WebClientOptions();\r\n\t\toptions.setSsl(true);\r\n\t\tWebClient webClient = WebClient.create(vertx, options);\r\n\t\t\r\n\t\tProxyWebClientOptions proxyOptions = new ProxyWebClientOptions();\r\n        \tproxyOptions\r\n        \t\t.setLog(true)\r\n\t\t\t.setForwardIP(false);\r\n\r\n\t\tProxyWebClient proxyWebClient = new ProxyWebClient(webClient, proxyOptions, circuitBreaker);\r\n\t\t\r\n\t\tMap\u003cString, String\u003e targetUris = new HashMap\u003c\u003e();\r\n\t\ttargetUris.put(\"/*\", \"https://host:port\");\r\n\t\ttargetUris.put(\"/apple\", \"http://host:port\");\r\n\t\ttargetUris.put(\"/banana/*\", \"https://host:port\");\r\n\t\t\t\r\n\t\tProxyLogger.logger().setLevel(Level.INFO);\r\n\t\tMultiProxyConfig multiProxyConfig = new MultiProxyConfig(proxyWebClient, targetUris);\r\n\t\tmultiProxyConfig.config(router);\r\n\t}\r\n}\r\n```\r\n\r\n## License ##\r\nThis library is released under an open source Apache 2.0 license. Ported with adaptations from [Smiley's HTTP Proxy Servlet](https://github.com/mitre/HTTP-Proxy-Servlet).\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelvaner%2Fvertx-web-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelvaner%2Fvertx-web-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelvaner%2Fvertx-web-proxy/lists"}