default to xtls-rprx-vision
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
77081338f3
commit
7c62faea01
@ -15,7 +15,7 @@ d2ray is a single Docker container that provides easy and braindead configuratio
|
||||
- See `.env` in the current repo.
|
||||
- `PORT`: the port to run Xray on.
|
||||
- `FQDN`: the domain name of your server, used to generate SSL certificates.
|
||||
- `USERS`: comma separated list of `USERCONF` allowed access to both Xray and resource downloads. Each `USERCONF` is of format `userid@flow`. `userid` is used as the credential for Xray. If `flow` is not specified it defaults to `xtls-rprx-direct`. For example, setting `USERS` to `user1@xtls-rprx-direct,user2` means two users with userid `user1` and `user2` and both with flow `xtls-rprx-direct`.
|
||||
- `USERS`: comma separated list of `USERCONF` allowed access to both Xray and resource downloads. Each `USERCONF` is of format `userid@flow`. `userid` is used as the credential for Xray. If `flow` is not specified it defaults to `xtls-rprx-vision`. For example, setting `USERS` to `user1@xtls-rprx-direct,user2` means two users: `user1` with flow `xtls-rprx-direct` and `user2` with flow `xtls-rprx-vision`.
|
||||
- `LOGDIR`: the directory to store logs, currently required.
|
||||
3. `docker compose up -d`
|
||||
4. You can access the Xray service using an Xray client. You can access the per-user resource downloads by accessing `https://your-domain:your-port`, entering the `userid` in the textbox at the bottom of the page and clicking the `Download` button next to it.
|
||||
|
@ -32,7 +32,7 @@ def parse_user_flow(s : str) -> list[tuple[str,str]]:
|
||||
if (len(ele) > 1):
|
||||
flow = ele[1]
|
||||
else:
|
||||
flow = "xtls-rprx-direct"
|
||||
flow = "xtls-rprx-vision"
|
||||
users.append((username, flow))
|
||||
return users
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user