-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
39 lines (34 loc) · 892 Bytes
/
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
worker_processes 1;
pid /run/nginx.pid;
events {
worker_connections 512;
use epoll;
multi_accept on;
}
http {
client_max_body_size 10m;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
default_type application/octet-stream;
set_real_ip_from unix:;
real_ip_header X-Real-IP;
server {
listen unix:/var/run/colorific/nginx.sock;
server_name colorific;
root /app/;
location / {
index index.html;
try_files $uri$args $uri$args/ $uri/ /index.html;
include mime.types;
sendfile on;
sendfile_max_chunk 1m;
tcp_nopush on;
}
location /api/ {
rewrite ^/api/(.*)$ /$1 break;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://backend:8080;
}
}
}