From 05dda5935c98144981be52c8a37062f2309a6279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 26 Feb 2022 19:43:09 +0100 Subject: [PATCH] add labels to docs. --- docs/lables.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/lables.md diff --git a/docs/lables.md b/docs/lables.md new file mode 100644 index 0000000..055f134 --- /dev/null +++ b/docs/lables.md @@ -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 +" +```