{"id":15008095,"url":"https://github.com/liweitianux/wikiproxy","last_synced_at":"2026-02-05T04:02:49.700Z","repository":{"id":256680786,"uuid":"856110294","full_name":"liweitianux/wikiproxy","owner":"liweitianux","description":"Wikipedia Proxy based on OpenResty","archived":false,"fork":false,"pushed_at":"2024-09-12T13:43:26.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T20:00:14.048Z","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}},"created_at":"2024-09-12T02:22:05.000Z","updated_at":"2024-09-14T07:07:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a60160a-52dc-4af4-b520-80aaa086456a","html_url":"https://github.com/liweitianux/wikiproxy","commit_stats":null,"previous_names":["liweitianux/wikiproxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liweitianux%2Fwikiproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liweitianux","download_url":"https://codeload.github.com/liweitianux/wikiproxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243180879,"owners_count":20249385,"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":["lua","openresty","proxy","wikipedia"],"created_at":"2024-09-24T19:15:09.055Z","updated_at":"2026-02-05T04:02:49.694Z","avatar_url":"https://github.com/liweitianux.png","language":"Lua","readme":"Wikipedia Proxy\n===============\n\nA simple Wikipedia proxy in Go.\n\nFeatures\n--------\n* Easy to deploy: one single domain to proxy the Wikipedia site.\n\n  For example, domain `en.wikiproxy.org` is used to proxy the English\n  Wikipedia site `en.wikipedia.org`; all the links to other `*.wikipedia.org`\n  or `*.wikimedia.org` domains will be translated to their own path prefixes\n  in the hosting domain `en.wikiproxy.org`.\n\n* Simple authenticator: help protect from crawling and/or abusing.\n\n* Proxy support to help access Wikipedia.\n\n  For example, a SOCKS5 proxy `socks5h://127.0.0.1:1080` can be used to access\n  the Wikipedia.\n\n* Minimal and self-contained.\n\n* Good unit tests.\n\nDeployment\n----------\nOS: Debian Linux (12/bookworm)\n\n1. Build the binary and copy to `/opt/wikiproxy/wikiproxy`\n\n2. Create the config file at `/opt/wikiproxy/wikiproxy.toml`.\n\n   In particular, set the `proxy` for accessing Wikipedia if required.\n\n3. Install the `wikiproxy.service` and start:\n\n   ```\n   $ sudo cp wikiproxy.service /etc/systemd/system/\n   $ sudo systemctl daemon-reload\n   $ sudo systemctl enable --now wikiproxy.service\n   ```\n\n4. Configure Nginx with [acmetool](https://github.com/hlandau/acmetool)\n   for TLS certificate:\n\n   ```\n   server {\n       listen      80;\n       listen [::]:80;\n       server_name en.wikiproxy.org zh.wikiproxy.org;\n       location / {\n           return 301 https://$host$request_uri;                                     \n       }   \n       include /etc/nginx/snippets/acmetool.conf;\n   }\n   server {\n       listen      443 ssl http2;\n       listen [::]:443 ssl http2;\n       server_name wikiproxy.org zh.wikiproxy.org;\n       ssl_certificate /var/lib/acme/live/en.wikiproxy.org/fullchain;\n       ssl_certificate_key /var/lib/acme/live/en.wikiproxy.org/privkey;\n       ssl_protocols TLSv1.2 TLSv1.3;\n       location / {\n           proxy_http_version 1.1;\n           proxy_set_header Host $http_host;\n           proxy_set_header X-Forwarded-Proto $scheme;\n           proxy_set_header X-Forwarded-Host $http_host;\n           proxy_pass http://127.0.0.1:2012;\n       }\n   }\n   ```\n\nLicense\n-------\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliweitianux%2Fwikiproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliweitianux%2Fwikiproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliweitianux%2Fwikiproxy/lists"}