{"id":31980777,"url":"https://github.com/liweitianux/wikiproxy-resty","last_synced_at":"2026-07-19T13:47:50.756Z","repository":{"id":256680786,"uuid":"856110294","full_name":"liweitianux/wikiproxy-resty","owner":"liweitianux","description":"Wikipedia Proxy based on OpenResty","archived":false,"fork":false,"pushed_at":"2025-07-21T13:19:10.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T15:26:10.809Z","etag":null,"topics":["lua","openresty","proxy","wikipedia"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liweitianux.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":"2024-09-12T02:22:05.000Z","updated_at":"2025-07-21T13:19:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a60160a-52dc-4af4-b520-80aaa086456a","html_url":"https://github.com/liweitianux/wikiproxy-resty","commit_stats":null,"previous_names":["liweitianux/wikiproxy","liweitianux/wikiproxy-resty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liweitianux/wikiproxy-resty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy-resty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy-resty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy-resty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy-resty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liweitianux","download_url":"https://codeload.github.com/liweitianux/wikiproxy-resty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy-resty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279030457,"owners_count":26089110,"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-10-14T02:00:06.444Z","response_time":60,"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":["lua","openresty","proxy","wikipedia"],"created_at":"2025-10-15T00:07:21.241Z","updated_at":"2025-10-15T00:07:23.950Z","avatar_url":"https://github.com/liweitianux.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wikipedia Proxy\n===============\n\nA standalone configuration bundle for OpenResty to set up a Wikipedia proxy.\n\n**WARNING**:\nThis project has been superceded by\n[wikiproxy](https://github.com/liweitianux/wikiproxy),\na simpler and better implementation in Go.\n\nTODO\n----\n- Improve headers handling, especially `Set-Cookie`, `Referer`, `Origin`\n- Better ACME integration\n\nUsage\n-----\nOS: Debian Linux (bookworm/12)\n\n1. Add OpenResty repository by creating file\n   `/etc/apt/sources.list.d/openresty.sources`\n   with the following content:\n\n    ```\n    # OpenResty for Debian\n    # https://openresty.org/en/linux-packages.html#debian\n    Enabled: yes\n    Types: deb\n    URIs: http://openresty.org/package/debian\n    Suites: bookworm\n    Components: openresty\n    Architectures: amd64\n    # PGP key from: https://openresty.org/package/pubkey.gpg\n    Signed-By:\n     -----BEGIN PGP PUBLIC KEY BLOCK-----\n     .\n     mQENBFkg3CEBCADG5Vem2p+1p6yV2jZfNsbJBPY1KYzR9weF/K3hmLODcrTaWfiD\n     EugHwKlAptGDGBtrMsERjUiOWUNUS8IHa+R6tzhnQePG6wO7/yGWBC4J82BkCT2x\n     M7zCDgldtNYkNqoBc0UfE4ln+WR/RX1DuzPM+DTBZBXLqRJVJFyFtHVJn8I5HPO2\n     hj51uYqHsewTyAkGzABV4gmSIETSmcU5KDisQ9Vt5OllE0ylh7+kakDFZklyBCHT\n     3IAuZhA18mw2qk1z5bnn/GpQ4fJi5w25lb9sqhhxta3ogwWWdJzXA+Nevb2dez8i\n     bpzPeFnba9q0UVD2VJ25e99DpG15aPvNt+tbABEBAAG0JU9wZW5SZXN0eSBBZG1p\n     biA8YWRtaW5Ab3BlbnJlc3R5LmNvbT6JATgEEwECACIFAlkg3CECGwMGCwkIBwMC\n     BhUIAgkKCwQWAgMBAh4BAheAAAoJEJfbdEPV7et08k0H/iIOiZmDavSKE7NSPLxS\n     ddRLh4+OGL3QW8JZh/+UaX1Z17G3q8kKSJwOemZBL/jIDkoMuHs1Hq0yp9vJ8BaS\n     5unX+FRmivwdS5yvkS9s3oA3iJbHagXw0KMnr+baDDNrUwo9MeO0m9muNF/eDoRz\n     FZ9SpOrgxwhz0kOOt8j+gxWk3TaQ6/JonH4rm3XtP4GMKOKQuUo6l8+pMPEfM209\n     nMv82kRPAxRV2TwRYToB+TithLTQytJTBytLA+ck5Ny8sGoO5PQWRyx6gj+Bhg0O\n     rFXfg7/sP2/FEeiDZcF2qn/VMDPvnC7ux2EQdI05MMGFY/pkjVYtLJC2Nb17Bcqj\n     DH25AQ0EWSDcIQEIAJOoTY0vf0mr+PGUbnv0KKtk65CTzKmICmWIAkCxZaTH+o/3\n     Lt9ZDtANH1ot3xVTkKg+qBuexh53jnyXyIaIfNqavH1gm+9JusrApVOad2ruODT5\n     XeVamz0blq37LTmJ7A4T1i8WvB0BQ3j1vh6XkVW6xq1URzVOYyhVqNNq2UIP9M9Y\n     wtiIIans5i11qmDtZwqxcSYoqSjgz+03M6Dn0UPB1OQdHjOPx7GwHG8+6sVyr+8A\n     9G8SlKWre2/qdDyZNdgxalOi5ManCwWSURJRuY7s858qFUm0/5dLMAtWWEbYEmYc\n     EUxbxQM2jPEaDmvvauZNup+a5DZXpRjpWcg19c0AEQEAAYkBHwQYAQIACQUCWSDc\n     IQIbDAAKCRCX23RD1e3rdG0dB/9EWT8sTVPOlgFAF2WVZT3bFiqiIC9Dg6Wblt/K\n     Id/p73gbDNTkeeTvGErAPPQwsKkbD1w2rIYoRzEJ1zVrLgaAbeH/frbQaYNu7c+3\n     Wm93gxBxjL9Jyrs3jq5jwR4kJ5j+a/GEPtTDqtXzZHvyCP2PWDoQWANNAQDuTpYE\n     LGHfDF9pmTVwuhkh2IFcH/ZBZUvcxP/w3jXqEiPti/rFN8wKSQtBgWI0pBpXGdrJ\n     Tl3mIE4jLbPmkxidP1yUFx9wzEVu3soXViehMua9nOeotGOKF4DgekzCnFuXNnd3\n     h2EiDJbMKk+QJcMPliIePZCP9JWj7n0ok9ccLg5XcNwiFEtn\n     =U4Wk\n     -----END PGP PUBLIC KEY BLOCK-----\n    ```\n\n2. Install OpenResty:\n\n    ```\n    $ sudo apt update\n    $ sudo apt install openresty\n    ```\n\n3. Generate a self-signed SSL certificate (or use ACME to issue one):\n\n    ```\n    $ openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:prime256v1 \\\n          -out etc/ssl_ecdsa.key\n    $ openssl req -x509 -sha256 -days 3650 -subj '/CN=WikiProxy' \\\n          -key etc/ssl_ecdsa.key -out etc/ssl_ecdsa.crt\n    ```\n\n4. Edit `wikiproxy/config.lua` accordingly, including the `wikis.host`\n   domains, `proxy` SOCKS5 proxy.\n\n5. If the SOCKS5 proxy is configured, start the proxy service.\n\n6. Finally start the OpenResty:\n\n    ```\n    $ mkdir /tmp/wikiproxy\n    $ sudo openresty -p $PWD -c $PWD/etc/nginx.conf\n    ```\n\nLicense\n-------\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliweitianux%2Fwikiproxy-resty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliweitianux%2Fwikiproxy-resty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliweitianux%2Fwikiproxy-resty/lists"}