Update nginx.md

v0.3.7
Suresh Alse 2019-04-25 15:54:17 -07:00 committed by GitHub
parent 7f63f4aa8e
commit b2c4fbeb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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).