diff options
| author | bndw <ben@bdw.to> | 2026-02-14 12:34:00 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-14 12:34:00 -0800 |
| commit | 860a662ebdfd9b2bd27a754283a25427d13fecbc (patch) | |
| tree | 4eb461b60f559f985355b24ef6d52ea65ff8cdb3 /.ship | |
| parent | c33395cee66770c4d88a47537c0ed821f6585f62 (diff) | |
feat: add example config for VPS deployment
Add config.example.yaml based on .ship deployment setup:
- gRPC on localhost:50051
- HTTP on localhost:8007 (not 8080)
- Public URL: muxstr.x.bdw.to
- Metrics enabled with dashboard
- Auth/rate-limiting disabled by default
Update .ship/service to use config file instead of individual flags:
- Old: -db -grpc-addr -ws-addr -public-url flags
- New: -config /var/lib/muxstr/config.yaml
Deployment: Copy config.example.yaml to /var/lib/muxstr/config.yaml
Diffstat (limited to '.ship')
| -rw-r--r-- | .ship/service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.ship/service b/.ship/service index a8e30de..3166559 100644 --- a/.ship/service +++ b/.ship/service | |||
| @@ -7,7 +7,7 @@ Type=simple | |||
| 7 | User=muxstr | 7 | User=muxstr |
| 8 | WorkingDirectory=/var/lib/muxstr | 8 | WorkingDirectory=/var/lib/muxstr |
| 9 | EnvironmentFile=/etc/ship/env/muxstr.env | 9 | EnvironmentFile=/etc/ship/env/muxstr.env |
| 10 | ExecStart=/usr/local/bin/muxstr -db relay.db -grpc-addr localhost:50051 -ws-addr localhost:8007 -public-url muxstr.x.bdw.to | 10 | ExecStart=/usr/local/bin/muxstr -config /var/lib/muxstr/config.yaml |
| 11 | Restart=always | 11 | Restart=always |
| 12 | RestartSec=5s | 12 | RestartSec=5s |
| 13 | NoNewPrivileges=true | 13 | NoNewPrivileges=true |
