{"id":24488556,"url":"https://github.com/samrand96/v2ray-nginx-cloudflare","last_synced_at":"2025-04-13T21:51:07.737Z","repository":{"id":207235425,"uuid":"718758819","full_name":"samrand96/v2ray-nginx-cloudflare","owner":"samrand96","description":"Install v2ray using docker with compatibility with Cloudflare and other CDN easily","archived":false,"fork":false,"pushed_at":"2025-02-16T10:52:41.000Z","size":67,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T12:11:24.513Z","etag":null,"topics":["cdn","proxy","proxy-server","shadowsocks","v2ray","vpn","vpn-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samrand96.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":"2023-11-14T18:36:19.000Z","updated_at":"2025-02-16T10:52:45.000Z","dependencies_parsed_at":"2023-11-20T08:11:49.368Z","dependency_job_id":"70708f61-5d6f-4c34-858e-9d85f9c0e93e","html_url":"https://github.com/samrand96/v2ray-nginx-cloudflare","commit_stats":null,"previous_names":["samrandhaji/v2ray-nginx-cloudflare","samrand96/v2ray-nginx-cloudflare"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrand96%2Fv2ray-nginx-cloudflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrand96%2Fv2ray-nginx-cloudflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrand96%2Fv2ray-nginx-cloudflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrand96%2Fv2ray-nginx-cloudflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samrand96","download_url":"https://codeload.github.com/samrand96/v2ray-nginx-cloudflare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788855,"owners_count":21161726,"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":["cdn","proxy","proxy-server","shadowsocks","v2ray","vpn","vpn-server"],"created_at":"2025-01-21T16:19:59.733Z","updated_at":"2025-04-13T21:51:07.730Z","avatar_url":"https://github.com/samrand96.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# V2Ray + NGINX + Cloudflare Deployment via Docker\n\nEffortlessly deploy V2Ray with Docker, fully optimized for compatibility with **Cloudflare** and other major **CDNs**.\n\n---\n\n## Project Overview\n\nThe **v2ray-nginx-cloudflare** project is designed to streamline the deployment of a secure, scalable V2Ray instance using Docker containers. This architecture enables seamless integration with **Cloudflare** and a wide range of Content Delivery Networks (CDNs), offering enhanced security, obfuscation, and performance.\n\nWhether you're looking to bypass restrictions or simply set up a robust private proxy, this solution is ideal for users who prioritize reliability, compatibility, and ease of deployment.\n\n---\n\n## Key Features\n\n- **V2Ray Integration**: Full support for V2Ray’s inbound and outbound protocols, providing flexible configuration options and advanced routing capabilities.\n- **Docker-Based Deployment**: Simplifies installation, management, and scalability with Docker and Docker Compose.\n- **Cloudflare \u0026 CDN Optimization**: Native support for reverse proxy setups with Cloudflare and other CDNs, improving both security and latency.\n- **Let's Encrypt SSL Support**: Automatic HTTPS certificate issuance using Certbot.\n- **Scripted Installation**: Optional one-command setup for users who want everything configured automatically.\n\n---\n\n## System Requirements\n\nTo get started, make sure you have the following:\n\n- **A VPS (Virtual Private Server)**  \n  We **highly recommend Hetzner** for performance and value — they offer:\n  \n  - 2 vCPU  \n  - 4 GB RAM  \n  - 20 TB Bandwidth  \n  - IPv4 \u0026 IPv6 support  \n  - All for only **€4.5/month**  \n  👉 Sign up and get **€20 credit** here: [https://bit.ly/ssr_vps](https://bit.ly/ssr_vps)\n\n- **Operating System** (any of the following):\n  - Ubuntu 12.04 or later\n  - Debian 7 or later\n  - CentOS 6 or later\n\n- **Root Access** to the server\n\n---\n\n## Manual Installation Guide\n\nFollow these steps to set up your V2Ray server with NGINX and Cloudflare:\n\n1. **Configure DNS**  \n   Log into your DNS provider or CDN panel (e.g., Cloudflare) and create an **A record** pointing to your server's IP. Temporarily disable the proxy/CDN feature.\n\n2. **Install Docker**  \n   Set up Docker and Docker Compose on your server.\n\n3. **Clone the Repository**  \n   Run the following command on your VPS:\n   ```bash\n   git clone https://github.com/samrand96/v2ray-nginx-cloudflare.git\n   cd v2ray-nginx-cloudflare\n   ```\n\n4. **Generate a UUID**  \n   This will serve as your user identity:\n   ```bash\n   cat /proc/sys/kernel/random/uuid\n   ```\n\n5. **Update V2Ray Config**  \n   Replace the placeholder `\u003cUPSTREAM-UUID\u003e` inside `v2ray/config/config.json` with the UUID you generated.\n\n6. **Configure Docker Compose**  \n   In `docker-compose.yml`, replace:\n   - `YOUR_DOMAIN` with your actual domain or subdomain\n   - `YOUR_EMAIL` with your email address (used by Let's Encrypt)\n\n7. **Start Services**  \n   Launch everything with:\n   ```bash\n   docker-compose up -d\n   ```\n\n8. **Verify Deployment**  \n   Open your domain in a browser to confirm the service is running and serving via HTTPS.\n\n9. **Enable CDN Proxy**  \n   Return to your DNS/CDN settings and activate the **proxy/CDN** feature to secure and mask your origin server.\n\n10. **Generate Client Config**  \n   Run the following script to generate a V2Ray client configuration:\n   ```bash\n   ./vmess.py\n   ```\n\n---\n\n## One-Command Quick Install\n\nNo time to configure everything manually? No worries — run the following command and let the script take care of everything:\n\n```bash\nsudo bash \u003c(curl -s https://raw.githubusercontent.com/samrand96/v2ray-nginx-cloudflare/main/easy-install.sh)\n```\n\nThis will automatically install Docker, configure the services, generate your UUID, obtain SSL certificates, and start the containers. Just plug in your domain when prompted, and you’re ready to go.\n\n---\n\n## Final Notes\n\nThis setup provides a powerful, production-ready proxy infrastructure tailored for modern privacy needs and optimized for CDN environments. Whether you’re a seasoned sysadmin or a first-time deployer, this solution ensures a secure and efficient setup with minimal friction.\n\nFor questions, improvements, or contributions, feel free to open issues or submit pull requests to the [GitHub repository](https://github.com/samrand96/v2ray-nginx-cloudflare).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrand96%2Fv2ray-nginx-cloudflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamrand96%2Fv2ray-nginx-cloudflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrand96%2Fv2ray-nginx-cloudflare/lists"}