nginx.conf 641 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

worker_processes 1;

events { worker_connections 1024; }

http {

    sendfile on;

    upstream docker-sefarad {
        server sefarad:8080;
    }

    server {
        listen 8080;

        location / {
            auth_basic "Restricted";
            auth_basic_user_file /etc/nginx/htpasswd;
            proxy_pass         http://docker-sefarad;
            proxy_redirect     off;
            proxy_set_header   Host $host;
            proxy_set_header   X-Real-IP $remote_addr;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Host $server_name;
        }
    }

}