mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
add labels to docs.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# custom labels
|
||||||
|
|
||||||
|
You can add custom lables for every room.
|
||||||
|
|
||||||
|
Example: Expose port 3000 from every room under `3000-(room-name)`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
-e "NEKO_ROOMS_INSTANCE_LABELS=
|
||||||
|
traefik.http.routers.{containerName}.service={containerName}-frontend
|
||||||
|
traefik.http.services.{containerName}-3000-tcp.loadbalancer.server.port=3000
|
||||||
|
traefik.http.routers.{containerName}-3000-tcp.entrypoints={traefikEntrypoint}
|
||||||
|
traefik.http.routers.{containerName}-3000-tcp.rule=PathPrefix(\`/3000-{roomName}\`)
|
||||||
|
traefik.http.middlewares.{containerName}-3000-tcp-prf.stripprefix.prefixes=/3000-{roomName}/
|
||||||
|
traefik.http.routers.{containerName}-3000-tcp.middlewares={containerName}-3000-tcp-prf
|
||||||
|
traefik.http.routers.{containerName}-3000-tcp.service={containerName}-3000-tcp
|
||||||
|
"
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user