Update 'README.md'
This commit is contained in:
parent
a1413e5f78
commit
844872bb0b
27
README.md
27
README.md
@ -1,8 +1,8 @@
|
|||||||
# d2ray
|
# d2ray
|
||||||
Clean, dockerized v2ray(Websocket + TLS) + Nginx + Let's Encrypt with official and well-maintained docker containers. No BS private containers.
|
Clean, dockerized xray(TCP + XTLS) + Nginx + Let's Encrypt with official and well-maintained docker containers. No private containers.
|
||||||
|
|
||||||
## Supports:
|
## Supports:
|
||||||
- v2ray with websocket + TLS protocol using the [official v2ray docker image](https://hub.docker.com/r/v2ray/official/).
|
- xray with TCP + XTLS protocol using [teddysun/xray](https://hub.docker.com/r/teddysun/xray/).
|
||||||
- Nginx frontend and **auto-renewing** Let's Encrypt certificate using the popular [linuxserver/swag](https://hub.docker.com/r/linuxserver/swag/).
|
- Nginx frontend and **auto-renewing** Let's Encrypt certificate using the popular [linuxserver/swag](https://hub.docker.com/r/linuxserver/swag/).
|
||||||
- watchtower for automatic docker image updates (can be disabled) from [containrrr/watchtower](https://hub.docker.com/r/containrrr/watchtower)
|
- watchtower for automatic docker image updates (can be disabled) from [containrrr/watchtower](https://hub.docker.com/r/containrrr/watchtower)
|
||||||
- Easy multiuser configuration and user conf file generation.
|
- Easy multiuser configuration and user conf file generation.
|
||||||
@ -21,12 +21,27 @@ Clean, dockerized v2ray(Websocket + TLS) + Nginx + Let's Encrypt with official a
|
|||||||
- To start over or to update the existing configuration. Simply change `config.yml`, rerun `configure.py` and restart the stack.
|
- To start over or to update the existing configuration. Simply change `config.yml`, rerun `configure.py` and restart the stack.
|
||||||
|
|
||||||
### Client connections
|
### Client connections
|
||||||
Client conf files are generated in `build/clients/[name]_[uuid]/config.json`. Clients simply need to download the most recent v2ray release and replace `config.json` with the ones generated. The config file by default directly connects to CN mainland websites and proxies foreign websites. The same goes for DNS lookups.
|
Client conf files are generated in `build/clients/[name]_[uuid]/config.json`. Clients simply need to download the most recent xray release and replace `config.json` with the ones generated. The config file by default directly connects to CN mainland websites and proxies foreign websites. The same goes for DNS lookups.
|
||||||
|
|
||||||
You can customize the template file `client_conf.in` to generate custom client conf files.
|
You can customize the template file `client_conf.in` to generate custom client conf files.
|
||||||
|
|
||||||
|
### Updating
|
||||||
|
Currently you need to merge conflict yourself. Most likely only `config.yml` unless you customized other template files too. An auto script is WIP and for now please do the following:
|
||||||
|
|
||||||
|
1. Pull the latest change with `git pull`
|
||||||
|
2. If there are conflicts, stash your local changes with `git stash`
|
||||||
|
3. Run `git pull` again
|
||||||
|
4. Run `git stash pop` to pop your local changes
|
||||||
|
5. Manually merge the conflicting files
|
||||||
|
6. Run `git add <merged files>` to mark them as conflict resolved
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
|
#### Basics
|
||||||
- Make sure your subdomain.domain.tld points to the server.
|
- Make sure your subdomain.domain.tld points to the server.
|
||||||
- Use `docker logs v2ray_nginx` to check for nginx init errors. Detailed nginx logs and be found in `nginx/logs/nginx`
|
- Use `docker logs d2ray_nginx` to check for nginx init errors. Detailed nginx logs and be found in `nginx/logs/nginx`
|
||||||
- Use `docker logs v2ray_v2ray` to check for v2ray init errors.
|
- Use `docker logs d2ray_xray` to check for v2ray init errors.
|
||||||
- Use `docker logs v2ray_watchtower` to check for watchtower errors.
|
- Use `docker logs d2ray_watchtower` to check for watchtower errors.
|
||||||
|
- xray log files can be found in `build/xray`
|
||||||
|
|
||||||
|
#### Q: The nginx container is stuck?
|
||||||
|
A: Nginx needs to obtain certificate on its first launch so this is sort of expected. If it takes an unusual amount of time (>60 seconds), kindly Ctrl-C to interrupt docker-compose and check the nginx log. Most likely something is misconfigured.
|
||||||
|
Loading…
Reference in New Issue
Block a user