From b2c4fbeb7ee6b060f5ab6d2cbd9dc4aaf8fbf455 Mon Sep 17 00:00:00 2001 From: Suresh Alse Date: Thu, 25 Apr 2019 15:54:17 -0700 Subject: [PATCH] Update nginx.md --- README/nginx.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README/nginx.md b/README/nginx.md index 9a15479..5b7adb6 100644 --- a/README/nginx.md +++ b/README/nginx.md @@ -22,5 +22,11 @@ server { Authentication ============== -You can enable basic http authentication with user name and password on nginx to prevent unauthorized users from accessing your cronjobs. Refer [this](https://www.digitalocean.com/community/tutorials/how-to-set-up-http-authentication-with-nginx-on-ubuntu-12-10). +If you need to apply basic HTTP authentication, you can set user name and password through environment variables: + +``` +BASIC_AUTH_USER=user BASIC_AUTH_PWD=SecretPassword +``` + +You can also enable basic http authentication with user name and password on nginx to prevent unauthorized users from accessing your cronjobs. Refer [this](https://www.digitalocean.com/community/tutorials/how-to-set-up-http-authentication-with-nginx-on-ubuntu-12-10).