{"id":15068502,"url":"https://github.com/txn2/n2proxy","last_synced_at":"2025-04-10T17:41:20.026Z","repository":{"id":57490521,"uuid":"137045106","full_name":"txn2/n2proxy","owner":"txn2","description":"Contraband filtering reverse proxy for plain http and SSL.","archived":false,"fork":false,"pushed_at":"2018-10-30T16:32:41.000Z","size":439,"stargazers_count":33,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T15:21:39.603Z","etag":null,"topics":["brew","docker-container","docker-image","golang-application","http-protocol-manipulation","http-proxy","http-proxy-middleware","http-server","post","proxy","rpm-packages","sql-injection","sql-injection-attacks","xss-filter"],"latest_commit_sha":null,"homepage":"https://mk.imti.co/golang-reverse-proxy/","language":"Go","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/txn2.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":"2018-06-12T09:00:17.000Z","updated_at":"2025-02-12T14:08:43.000Z","dependencies_parsed_at":"2022-09-08T06:30:32.594Z","dependency_job_id":null,"html_url":"https://github.com/txn2/n2proxy","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fn2proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fn2proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fn2proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fn2proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txn2","download_url":"https://codeload.github.com/txn2/n2proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262186,"owners_count":21074258,"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":["brew","docker-container","docker-image","golang-application","http-protocol-manipulation","http-proxy","http-proxy-middleware","http-server","post","proxy","rpm-packages","sql-injection","sql-injection-attacks","xss-filter"],"created_at":"2024-09-25T01:37:52.890Z","updated_at":"2025-04-10T17:41:20.007Z","avatar_url":"https://github.com/txn2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![n2proxy](mast.jpg)\n\n# n2proxy\n\n[n2proxy] is a [reverse proxy] for detecting and filtering suspicious  data including [xss], [SQL injection] or any matchable pattern in a URL or HTTP post body.\n\n\n**Install**\n```bash\n# download sample configuration file\nwget https://raw.githubusercontent.com/txn2/n2proxy/master/cfg.yml\n\n# install on mac\nbrew install txn2/tap/n2proxy\n\n# upgrade\nbrew upgrade n2proxy\n```\n\n**Use**\n```bash\n# get the version\nn2proxy --version\n\n# get help\nn2proxy --help\n\n# environment variable override defaults\nCFG=./cfg.yml PORT=9090 BACKEND=http://example.com:80 n2proxy\n\n# command line options override environment variables\nn2proxy --port=9091 --backend=http://example.com:80\n\n\n# docker\ndocker run --rm -t -v \"$(pwd)\":/cfg/ -p 9092:9092 \\\n    txn2/n2proxy --port=9092 --cfg=/cfg/cfg.yml \\\n    --backend=http://example.com\n\n```\n\nBrowse to http://localhost:9090\n\n### Development Notes\n\nThis project uses [Go Releaser].\n\nGenerate a build without publishing it:\n```bash\ngoreleaser --skip-publish --rm-dist --skip-validate\n```\n\nGenerate Release:\n```bash\nGITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist\n```\n\n[SQL injection]: https://www.owasp.org/index.php/SQL_Injection\n[xss]: https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)\n[n2proxy]: https://github.com/txn2/n2proxy\n[reverse proxy]: https://en.wikipedia.org/wiki/Reverse_proxy\n[Go Releaser]: https://goreleaser.com/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Fn2proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxn2%2Fn2proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Fn2proxy/lists"}