halitsever/girici-web-proxy 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 125 个 Star、39 次 Fork。
仓库全名
halitsever/girici-web-proxy
README 摘要
Girici is a self-hosted web proxy for Node.js, written in TypeScript and Vue. A Node.js alternative to php-proxy that you run with Docker on your own server. Documentation · Getting started · Supported sites · Threat model · php-proxy alternative Note: Girici v1 is no longer maintained. v2, built on its own service worker engine, is the current release. latest now points to v2; the last v1 image stays available as…
Girici is a self-hosted web proxy for Node.js, written in TypeScript and Vue. A Node.js alternative to php-proxy
that you run with Docker on your own server.
Note: Girici v1 is no longer maintained. v2, built on its own service worker engine, is the current release.
latest now points to v2; the last v1 image stays available as halitsever/girici-web-proxy:v1.
Fancy UI - looking good ui for surfing on internet without restriction
Use internet of server - you can install girici on server and you can use server’s internet as web proxy
Girici runs on a server you control and lets you browse other sites through it. Pages open from Girici’s own
address, and a service worker in your browser rewrites them so links, forms, logins, media and WebSockets keep
working inside the proxy. The server only checks and relays the traffic.
Screenshot
Features
Modern sites. Classic pages, single-page apps, video, and realtime sites over WebSockets.
Private by default. First-run setup with a one-time code from the server log, then an admin login. Turn on
public access in Settings when you want anyone to use it.
Safe defaults. An SSRF guard keeps visitors off your server’s private network. CSRF and origin checks, rate
limits, and logs that leave out target URLs, cookies and tokens are all on out of the box.
Per-site data. Each site gets its own cookie jar and storage, with third-party cookies blocked by default.
Clear one site’s data, or all of it, from Settings or the in-page toolbar.
Operator tools. A blocked sites list, an upstream proxy (HTTP or SOCKS5) for all outgoing traffic, and
server-side YouTube poTokens.
Small to run. One Docker image for amd64 and arm64, with a SQLite file as its only state. Release images are
signed with cosign and carry provenance and an SBOM.
Open http://localhost:3000, enter the setup code, and create the admin account. The volume keeps the account and
settings across restarts and updates.
Service workers need HTTPS on any address other than localhost. To serve Girici on a domain with automatic
certificates, clone the repository, point the domain at your server and run the bundled Caddy profile:
GIRICI_DOMAIN=proxy.example.com GIRICI_TRUST_PROXY=1 docker compose --profile https up -d
Keep Girici’s own port 3000 closed to the internet, so nobody can skip Caddy and forge their address.
For nginx, Traefik or Cloudflare Tunnel, see Reverse proxies.
Image tags: latest and v2 follow the newest v2 release, and version tags such as 2.1 and 2.1.2 pin one. The
same tags are on ghcr.io/halitsever/girici-web-proxy. The last v1 image stays at halitsever/girici-web-proxy:v1;
see Migrating from v1.
Railway: deploy the image with a volume; the settings are in
Cloud platforms.
[!IMPORTANT]
Every platform needs a persistent disk mounted at /data. Without it, each deploy or restart deletes the
admin account and settings and puts the instance back into first-run setup. The configs above include one; Render’s
free plan has no disks, so the Blueprint uses the Starter plan.
Configuration
Girici reads environment variables and stops at startup with the variable’s name if one is wrong. The most used:
Variable
Default
What it does
PORT
3000
Port to listen on.
GIRICI_DATA_DIR
/data in Docker
Where the SQLite database lives. Mount a volume here.
GIRICI_TRUST_PROXY
unset
The number of reverse proxies in front of Girici, for example 1. Never true.
GIRICI_RATE_LIMIT
3000
Relay requests per visitor per minute. 0 turns it off.
GIRICI_BLOCKED_HOSTS
unset
Sites to refuse, with their subdomains.
GIRICI_UPSTREAM_PROXY
unset
Send all outgoing traffic through an http://, https://, socks5:// or socks5h:// proxy.
GIRICI_SITE_DOMAIN
unset
Run each proxied site on its own host under this domain (subdomain mode).
SOURCE_URL
this repository
The source code link in the UI. Point it at your fork if you change the code.
The operator sees everything. TLS to the real site ends at the Girici server, which can read all proxied
traffic, passwords included. Only use instances you trust.
By default, all sites share one origin. Girici keeps sites apart in JavaScript, which has known gaps; a hostile
site may reach data other sites left in the same browser.
Subdomain mode gives each site its own host,
so the browser keeps them apart. It needs wildcard DNS and a wildcard certificate.
Sites can still refuse you. Many sites block or challenge datacenter IPs, whatever the proxy does. Voice and
video calls do not work, because WebRTC is turned off.
Requires Node.js 22.19 or newer (24 LTS recommended).
npm ci
npm run build
npm start
Girici listens on http://localhost:3000. npm run dev rebuilds on change, and npm run docs:dev serves the
documentation. See CONTRIBUTING before opening a pull request.
Security
Report vulnerabilities privately through GitHub’s private vulnerability reporting, as described in the
security policy.
Found a bug or have an idea? Open an issue.
Read the contributing guide before sending a pull request.
Girici is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License, version 3, as published by the Free Software Foundation. See LICENSE and
THIRD_PARTY_NOTICES.md.
If you run a modified version of Girici as a network service, the AGPL requires you to offer its users the source
code of your version. Set SOURCE_URL to point to it; the UI links there.
评论