From 227a08dc8ddc489d1b04fdcda6fc57f89131f23f Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 14 Jun 2020 05:52:52 +0530 Subject: [PATCH] docs: explain single-bench labels explain environment variables set in labels [skip travis] --- docs/single-bench.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/single-bench.md b/docs/single-bench.md index ad511dc9..c2867980 100644 --- a/docs/single-bench.md +++ b/docs/single-bench.md @@ -50,7 +50,15 @@ To get started, copy the existing `env-local` or `env-production` file to `.env` - `ENTRYPOINT_LABEL=traefik.http.routers.erpnext-nginx.entrypoints=websecure` - Related to the traefik configuration, says all traffic from outside should come from HTTP or HTTPS, for local development should be web, for production websecure. if redirection is needed, read below. - `CERT_RESOLVER_LABEL=traefik.http.routers.erpnext-nginx.tls.certresolver=myresolver` - - Which traefik resolver to use to get TLS certificate, this variable **should only be set in production.** + - Which traefik resolver to use to get TLS certificate, sets `erpnext.local.no-cert-resolver` for local setup. +- ``HTTPS_REDIRECT_RULE_LABEL=traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`) `` + - Related to the traefik https redirection configuration, sets `erpnext.local.no-redirect-rule` for local setup. +- `HTTPS_REDIRECT_ENTRYPOINT_LABEL=traefik.http.routers.http-catchall.entrypoints=web` + - Related to the traefik https redirection configuration, sets `erpnext.local.no-entrypoint` for local setup. +- `HTTPS_REDIRECT_MIDDLEWARE_LABEL=traefik.http.routers.http-catchall.middlewares=redirect-to-https` + - Related to the traefik https redirection configuration, sets `erpnext.local.no-middleware` for local setup. +- `HTTPS_USE_REDIRECT_MIDDLEWARE_LABEL=traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https` + - Related to the traefik https redirection configuration, sets `erpnext.local-no-redirect-middleware` for local setup. Notes: