-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
51 lines (42 loc) · 1.25 KB
/
nginx.conf
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
worker_processes 1;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_tokens off;
server {
listen 8080;
root /www/data/react;
include /etc/nginx/mime.types;
gzip on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/javascript text/javascript text/xml application/xml application/xml+rss;
location ^/(static/|d_static) {
expires 30d;
add_header Vary Accept-Encoding;
access_log off;
}
location /d_static {
alias /www/data/django;
}
location / {
autoindex on;
index index.html index.php;
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://logdb-backend:8000/api;
}
location /admin {
proxy_pass http://logdb-backend:8000/admin;
}
}
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;
}