Skip to content

Commit

Permalink
Update nginx.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alseambusher committed Apr 25, 2019
1 parent 7f63f4a commit b2c4fbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit b2c4fbe

Please sign in to comment.