{"id":22822526,"url":"https://github.com/ryosukedtomita/gatekeeper","last_synced_at":"2025-08-04T23:18:23.550Z","repository":{"id":266107157,"uuid":"891560621","full_name":"RyosukeDTomita/GateKeeper","owner":"RyosukeDTomita","description":"OpenResty Reverse Proxy to study some authentication","archived":false,"fork":false,"pushed_at":"2025-02-11T17:24:32.000Z","size":66,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T00:02:54.474Z","etag":null,"topics":["basic-authentication","digest-authentication","lua-script","openresty","reverse-proxy"],"latest_commit_sha":null,"homepage":"http://localhost:80","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RyosukeDTomita.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-20T14:53:02.000Z","updated_at":"2025-02-11T17:24:33.000Z","dependencies_parsed_at":"2024-12-02T16:39:55.814Z","dependency_job_id":"cbd9436c-65b5-4a2f-812c-ae396b7f8991","html_url":"https://github.com/RyosukeDTomita/GateKeeper","commit_stats":null,"previous_names":["ryosukedtomita/gatekeeper"],"tags_count":0,"template":false,"template_full_name":"RyosukeDTomita/template_repository_all","purl":"pkg:github/RyosukeDTomita/GateKeeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2FGateKeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2FGateKeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2FGateKeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2FGateKeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyosukeDTomita","download_url":"https://codeload.github.com/RyosukeDTomita/GateKeeper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyosukeDTomita%2FGateKeeper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268801997,"owners_count":24309644,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["basic-authentication","digest-authentication","lua-script","openresty","reverse-proxy"],"created_at":"2024-12-12T16:12:12.844Z","updated_at":"2025-08-04T23:18:23.499Z","avatar_url":"https://github.com/RyosukeDTomita.png","language":"Lua","readme":"# GateKeeper\n\n![un license](https://img.shields.io/github/license/RyosukeDTomita/GateKeeper)\n[![Playwright Tests](https://github.com/RyosukeDTomita/GateKeeper/actions/workflows/playwright.yml/badge.svg)](https://github.com/RyosukeDTomita/GateKeeper/actions/workflows/playwright.yml)\n\n## INDEX\n\n- [ABOUT](#about)\n- [ENVIRONMENT](#environment)\n- [PREPARING](#preparing)\n- [HOW TO USE](#how-to-use)\n\n---\n\n## ABOUT\n\nI used OpenResty to create a reverse proxy to try various authentication methods.\n\n---\n\n## ENVIRONMENT\n\n- openresty/openresty:1.21.4.1-0-bullseye-fat\n- redis:8.0-M02-bookworm\n\n---\n\n## PREPARING\n\n1. install VSCode, Docker\n2. install VSCode Extensions *Dev ContainerS*\n3. On the VSCode, `Ctrl shift p` and run `Dev Containers: Rebuild Containers`\n\n---\n\n## HOW TO USE\n\n```shell\ndocker compose up -d\n```\n\n### For Dev Containers\n\nOn the VSCode, `Ctrl shift p` and run `Dev Containers: Rebuild Containers`\n\n#### How to restart OpenResty\n\nIn the Dev Containers, OpenResty is not started using the `CMD` directive in the Dcokerfile. Because, to restart OpenResty, it would require rebuilding the container. It takes a lot of times.\n\n\u003e [!NOTE]\n\u003e Since OpenResty is running as a persistent process to keep the container running, stopping openresty will stop the container.\n\nInstead, I set here in the devcontainer.json.\n\n```json\n  \"overrideCommand\": true,\n  \"postStartCommand\": \"openresty\",\n```\n\nThis allows for restarting openresty using shell command, as `overrideCommand` is used for the container's persistent process.\n\n```shell\nopenresty -s reload\n```\n\n\u003e [!NOTE]\n\u003e - Sometime, `openresty -s reload` not work well, then `openresty -s stop` and restart `openresty`.\n\u003e - If use `postCreateCommand` instead of `PostStartCommand`, the following error occures.\n\u003e\n\u003e   ```\n\u003e   nginx: [alert] could not open error log file: open() \"/usr/local/openresty/logs/error.log\" failed (2: No such file or directory)\n\u003e   2025/01/08 00:55:23 [emerg] 1630#1630: open() \"/usr/local/openresty/conf/nginx.conf\" failed (2: No such file or directory)\n\u003e   ```\n\n#### How to see the OpenResty log\n\n\u003e [!NOTE]\n\u003e access.log, error.log are redirected to stdout.\n\u003e\n\u003e ```shell\n\u003e ls -l /usr/local/openresty/nginx/logs/access.log \n\u003e lrwxrwxrwx 1 root root 11 May 25  2022 /usr/local/openresty/nginx/logs/access.log -\u003e /dev/stdout\n\u003e ```\n\nSo, the easiest way is `docker logs`\n\n```shell\n# access.log, error.log\ndocker compose logs reverse_proxy_app\n```\n\n```shell\n# eventlogs\ncat /usr/local/openresty/nginx/logs/error.log\n```\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryosukedtomita%2Fgatekeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryosukedtomita%2Fgatekeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryosukedtomita%2Fgatekeeper/lists"}