{"id":24609683,"url":"https://github.com/ipfans/authgate","last_synced_at":"2025-03-18T12:37:24.181Z","repository":{"id":273974300,"uuid":"921106688","full_name":"ipfans/authgate","owner":"ipfans","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-24T04:14:57.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T05:19:04.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ipfans.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}},"created_at":"2025-01-23T10:53:10.000Z","updated_at":"2025-01-24T04:14:25.000Z","dependencies_parsed_at":"2025-01-24T05:29:12.444Z","dependency_job_id":null,"html_url":"https://github.com/ipfans/authgate","commit_stats":null,"previous_names":["ipfans/authgate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fauthgate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fauthgate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fauthgate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Fauthgate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfans","download_url":"https://codeload.github.com/ipfans/authgate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244225584,"owners_count":20419100,"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":"2025-01-24T18:16:37.212Z","updated_at":"2025-03-18T12:37:24.004Z","avatar_url":"https://github.com/ipfans.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AuthGate\n\nAuthGate 是一个用于管理用户认证和授权的系统。它提供了一个简单的 API 接口，用于验证用户的身份，并生成 JWT 令牌。\n\n## 配置\n\n配置文件 `config.yaml` 用于配置 AuthGate 的行为。\n\n```yaml\naddr: \":8080\"\nroutes:\n  # 路由配置项\n  auth_host: \"auth.example.com\"\n  ssl: true\n  jwt_secret: \"your-jwt-secret-key-here\"\n\n  # Cookie 配置\n  cookies:\n    name: \"authgate_token\"\n    max_age: 86400 # 24小时\n    secure: false\n    http_only: true\n    path: \"/\"\n    domain: \"\"\n\n  # 认证凭据\n  credential:\n    username: \"admin\"\n    password: \"password\"\n\n  # 后端服务配置\n  backends:\n    - host: \"backend.example.com\"\n      load_balance: \"round_robin\" # 可选: random, round_robin, least_connections, weighted_round_robin\n      weight:\n        - 1\n      upstream:\n        - \"http://127.0.0.1:8080\"\n      health_check:\n        enabled: true\n        interval: \"10\"\n        timeout: \"5\"\n        healthy_threshold: 2\n        unhealthy_threshold: 3\n      client:\n        timeout: \"30s\"\n        keep_alive_timeout: \"30s\"\n        max_idle_conns: 100\n        idle_conn_timeout: \"90s\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fauthgate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfans%2Fauthgate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fauthgate/lists"}