[Proxy] Don't track xray config.json (survives deploys); add config.json.example
The real Xray VPN config held credentials and was overwritten by git checkout on every deploy. Untrack it + gitignore it + ship config.json.example as the template, so the server-side config persists across redeploys. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -21,3 +21,6 @@ Thumbs.db
|
|||||||
# local dev run logs
|
# local dev run logs
|
||||||
/run.log
|
/run.log
|
||||||
/run.err
|
/run.err
|
||||||
|
|
||||||
|
# Xray VPN config holds real credentials — keep it server-only.
|
||||||
|
deploy/xray/config.json
|
||||||
|
|||||||
@@ -11,9 +11,12 @@ pointed at that proxy from the admin panel, and only ingestion traffic goes thro
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
1. **Put your config** in `deploy/xray/config.json`. Replace the `proxy` outbound with your
|
1. **Create your config** from the example (it is git-ignored, so deploys never overwrite it):
|
||||||
own vmess / vless / trojan outbound (templates below). Keep the `inbounds` and `routing`
|
```bash
|
||||||
sections as-is so the local SOCKS/HTTP ports stay the same.
|
cp deploy/xray/config.json.example deploy/xray/config.json
|
||||||
|
nano deploy/xray/config.json # replace the `proxy` outbound with your vmess/vless/trojan
|
||||||
|
```
|
||||||
|
Keep the `inbounds` and `routing` sections as-is so the local SOCKS/HTTP ports stay the same.
|
||||||
|
|
||||||
2. **Start the sidecar** (it's behind a compose profile so normal deploys don't run it):
|
2. **Start the sidecar** (it's behind a compose profile so normal deploys don't run it):
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user