diff --git a/Dockerfile b/Dockerfile index 718ac97..9e40424 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,6 @@ COPY ./opt /opt/ # remove packages RUN set -xe && apk del unzip wget + +VOLUME /etc/d2ray CMD ["sh", "/opt/init.sh"] \ No newline at end of file diff --git a/README.md b/README.md index 9cc78a0..d944515 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,12 @@ d2ray checks whether a key file exists at path `/etc/xray/certs/keys` and genera You can either supply a pre-generated private key using `xray x25519` or let d2ray generate one. The corresponding public key is printed to the container log (`docker logs`), which clients use to connect. -If you are generating the private key yourself, the key file must contain exactly the output of `xray x25519`. +If you are generating the keys yourself, the key file must contain exactly the output of `xray x25519`. ## How To Update? - `docker compose down` - `docker compose pull` -- `docker compose up -d` \ No newline at end of file +- `docker compose up -d` + +## Notes +- The old xtls-vision + TLS + Nginx fallback has been branched out to the `vision` branch. \ No newline at end of file