-
Notifications
You must be signed in to change notification settings - Fork 0
/
big-wednesday.conf
86 lines (61 loc) · 2.61 KB
/
big-wednesday.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
85
86
map $arg_app $version_upstream {
default search_svc_url;
"search" search_svc_url;
"checkout" checkout_svc_url;
"customers" customers_svc_url;
"suppliers" suppliers_svc_url;
"products" products_svc_url;
"orderable-search" orderable_search_svc_url;
}
server {
server_name api.bigwednesday.io nzgrud6b.bigwednesday.io;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/starbigwednesdayio.crt;
ssl_certificate_key /etc/nginx/ssl/starbigwednesdayio.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location /1/_application_versions {
proxy_pass http://$version_upstream/version;
}
location /1/orderable_search {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://orderable_search_svc_url/search;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/indexes/ {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://search_svc_url/indexes/;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/checkouts {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://checkout_svc_url/checkouts;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/orders {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://checkout_svc_url/orders;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/customers {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://customers_svc_url/customers;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/suppliers {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://suppliers_svc_url/suppliers;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/products {
include /etc/nginx/conf.d/includes/options_request.conf;
proxy_pass http://products_svc_url/products;
include /etc/nginx/conf.d/includes/access_control.conf;
}
location /1/images/ {
root /usr/share/nginx/html;
error_page 404 =404 /placeholder.jpg;
proxy_intercept_errors on;
proxy_pass http://res.cloudinary.com/;
}
}