Feat wildcard domain support#2
Open
mrzero0nol wants to merge 4 commits into
Open
Conversation
- Rewrote README.md with a comprehensive, beginner-friendly guide in Indonesian. - Refactored `_worker.js` to use a centralized `config` object. - Added password protection for the subscription endpoint. - Implemented KV caching for the proxy list to improve performance. - Correctly implemented the wildcard domain feature, ensuring generated VLESS links are functional. - Aligned the script's functionality with the new documentation.
This commit implements the wildcard subdomain feature for the V2Ray proxy gateway worker. When a request is made to a subdomain of the configured `baseDomain` (e.g., `example.com.worker.domain`), the script now correctly uses the subdomain part (`example.com`) as the `host` and `SNI` in the generated VLESS configuration. This allows for effective traffic camouflage. Additionally, this commit addresses feedback from the code review: - Replaces hardcoded credentials (`password`, `kvNamespace`) in `_worker.js` with clear placeholders to improve security and prevent accidental deployment with default values. - Updates `README.md` to provide clear, step-by-step instructions for the new wildcard feature and to reflect the use of placeholders in the configuration.
- Merefaktor `_worker.js` untuk menyertakan blok konfigurasi terpusat untuk kemudahan pengaturan. - Menambahkan dukungan untuk subdomain wildcard, memungkinkan pengguna untuk menyamarkan lalu lintas dengan mengatur `host` dan `SNI` secara dinamis. - Mengimplementasikan caching daftar proksi menggunakan Cloudflare KV untuk meningkatkan kinerja dan keandalan. - Menulis ulang `README.md` secara komprehensif dalam Bahasa Indonesia untuk memberikan instruksi pemasangan yang jelas dan ramah bagi pemula, termasuk panduan untuk pengaturan KV dan DNS.
Mengganti metode CNAME DNS dengan metode Rute Pekerja Cloudflare untuk mengonfigurasi subdomain wildcard. Ini lebih efisien dan sejalan dengan praktik terbaik Cloudflare.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.