-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjournalbrew.conf
54 lines (53 loc) · 1.81 KB
/
journalbrew.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
52
53
54
events {
worker_connections 512;
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
server_tokens off;
location / {
root C:/Users/vivek/journalbrew/webapp/dist;
index index.html index.htm index.nginx-debian.html;
try_files $uri /index.html;
}
location /api/auth {
proxy_pass http://localhost:5000/auth;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /api/post {
proxy_pass http://localhost:5001/post;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
client_max_body_size 1024M;
}
location /api/user-info {
proxy_pass http://localhost:5002/user-info;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
client_max_body_size 1024M;
}
location /api/search {
proxy_pass http://localhost:5003/search;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
client_max_body_size 1024M;
}
}
}