chore: update sipp readme
d806f20f
1 file(s) · +2 −27
| 200 | 200 | ||
| 201 | 201 | Since Sipp is a single binary it can be run in virtually any enviornment. |
|
| 202 | 202 | ||
| 203 | - | ### Systemd |
|
| 204 | - | ||
| 205 | - | Create a service file at `/etc/systemd/system/sipp.service`: |
|
| 203 | + | ### Railway |
|
| 206 | 204 | ||
| 207 | - | ```ini |
|
| 208 | - | [Unit] |
|
| 209 | - | Description=Sipp snippet server |
|
| 210 | - | After=network.target |
|
| 211 | - | ||
| 212 | - | [Service] |
|
| 213 | - | ExecStart=/usr/local/bin/sipp server --port 3000 --host 0.0.0.0 |
|
| 214 | - | Environment=SIPP_API_KEY=your-secret-key |
|
| 215 | - | WorkingDirectory=/var/lib/sipp |
|
| 216 | - | Restart=on-failure |
|
| 217 | - | ||
| 218 | - | [Install] |
|
| 219 | - | WantedBy=multi-user.target |
|
| 220 | - | ``` |
|
| 221 | - | ||
| 222 | - | ```bash |
|
| 223 | - | sudo systemctl enable --now sipp |
|
| 224 | - | ``` |
|
| 205 | + | [](https://railway.com/deploy/Axcf_D?referralCode=JGcIp6) |
|
| 225 | 206 | ||
| 226 | 207 | ### Docker |
|
| 227 | 208 | ||
| 236 | 217 | docker run -p 3000:3000 -e SIPP_API_KEY=your-secret-key -v sipp-data:/data sipp |
|
| 237 | 218 | ``` |
|
| 238 | 219 | ||
| 239 | - | ### Railway |
|
| 240 | - | ||
| 241 | - | 1. Fork this repo and connect your fork to [Railway](https://railway.app) |
|
| 242 | - | 2. Set the environment variables `SIPP_API_KEY` and optionally `SIPP_AUTH_ENDPOINTS` |
|
| 243 | - | 3. Add a [volume](https://docs.railway.com/guides/volumes) to your service and mount it at `/data` |
|
| 244 | - | 4. Set `SIPP_DB_PATH` to `/data/sipp.sqlite` so the database persists across deploys |
|