Skip to content

Feat wildcard domain support#2

Open
mrzero0nol wants to merge 4 commits into
mainfrom
feat-wildcard-domain-support
Open

Feat wildcard domain support#2
mrzero0nol wants to merge 4 commits into
mainfrom
feat-wildcard-domain-support

Conversation

@mrzero0nol

Copy link
Copy Markdown
Owner

No description provided.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant