summaryrefslogtreecommitdiffstats
path: root/nginx-conf/nginx.conf
blob: ff22800755d4a1588b33fb4947d92ca850c620b2 (plain) (blame)
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
# user  nginx;
worker_processes  1;

pid        /tmp/nginx.pid;
events {
  worker_connections 1024;
}
http {
    client_body_temp_path /tmp/client_temp;
    proxy_temp_path       /tmp/proxy_temp_path;
    fastcgi_temp_path     /tmp/fastcgi_temp;
    uwsgi_temp_path       /tmp/uwsgi_temp;
    scgi_temp_path        /tmp/scgi_temp;
    server {
        listen 8090;
        location / {
          proxy_pass http://django-app-service:8060;
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
        }

        location /static/ {
            alias /usr/share/nginx/html/static;
        }

  }
}