You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
813 B
33 lines
813 B
Hosting
|
|
=======
|
|
|
|
Install [nginx](http://nginx.org/) on your server. Then edit the configuration to map port 80 (or any other port) to 8000
|
|
|
|
```
|
|
sudo vi /etc/nginx/sites-available/default
|
|
```
|
|
Change it to this
|
|
```
|
|
server {
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:8000;
|
|
}
|
|
}
|
|
```
|
|
|
|
Authentication
|
|
==============
|
|
|
|
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).
|
|
|