-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproxy-balancer-dev.conf
84 lines (56 loc) · 1.6 KB
/
proxy-balancer-dev.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
upstream imgproxy {
server imgproxy:3000;
}
server {
listen 80;
location / {
return 301 https://$host:3000$request_uri;
}
}
server {
listen 443 ssl;
client_max_body_size 240M;
ssl_certificate cert/localhost3000.crt;
ssl_certificate_key cert/localhost3000.key;
location /imgproxy {
proxy_pass http://imgproxy;
}
# NEW_ROUTE_PLACEHOLDER
location /api/v1/mailing {
proxy_pass http://host.docker.internal:4031;
}
location /og-image {
proxy_pass http://host.docker.internal:4005;
}
location /api/v1/categories {
proxy_pass http://host.docker.internal:4021;
}
location /api/v1/health {
proxy_pass http://host.docker.internal:4003;
}
location /api/v1/bucket {
proxy_pass http://host.docker.internal:4002;
}
location /api/v1/auth {
proxy_pass http://host.docker.internal:4001;
}
location /dashboard {
proxy_pass https://host.docker.internal:3001;
root /usr/share/nginx/html;
}
location /api/v1/blogs {
proxy_pass http://host.docker.internal:4010;
}
location / {
proxy_pass http://host.docker.internal:4200;
}
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
include h5bp/tls/policy_balanced.conf;
# Custom error pages
include h5bp/errors/custom_errors.conf;
# Include the basic h5bp config set
}