From 587d86708d48105ef6826e545f89e8b2501c0923 Mon Sep 17 00:00:00 2001 From: Sanaei Date: Tue, 21 Apr 2026 20:18:10 +0200 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Configuration.md b/Configuration.md index 2ebff26..9ac6531 100644 --- a/Configuration.md +++ b/Configuration.md @@ -382,4 +382,12 @@ The Geosites in Xray-core play a key role in traffic routing, enabling flexible 2. Open `Geofiles` dropdown and update the needed geofile -![image](https://github.com/user-attachments/assets/6765b54d-3858-4fd3-b75b-17b5bc2b983f) \ No newline at end of file +![image](https://github.com/user-attachments/assets/6765b54d-3858-4fd3-b75b-17b5bc2b983f) + +## Custom GeoSite / GeoIP DAT sources + +Administrators can add custom GeoSite and GeoIP `.dat` files from URLs in the panel (same workflow as updating built-in geofiles). Files are stored under the same directory as the Xray binary (`XUI_BIN_FOLDER`, default `bin/`) with deterministic names: `geosite_<alias>.dat` and `geoip_<alias>.dat`. + +**Routing:** Xray resolves extra lists using the `ext:` form, for example `ext:geosite_myalias.dat:tag` or `ext:geoip_myalias.dat:tag`, where `tag` is a list name inside that DAT file (same pattern as built-in regional files such as `ext:geoip_IR.dat:ir`). + +**Reserved aliases:** Only for deciding whether a name is reserved, the panel compares a normalized form of the alias (`strings.ToLower`, `-` → `_`). User-entered aliases and generated file names are not rewritten in the database; they must still match `^[a-z0-9_-]+$`. For example, `geoip-ir` and `geoip_ir` collide with the same reserved entry.