forked from contiv/contiv-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contiv-nginx.conf
134 lines (124 loc) · 3.99 KB
/
contiv-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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
server {
listen 80;
server_name 0.0.0.0;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#netmaster
location /api/v1/networks/ {
proxy_pass http://localhost:9999/api/v1/networks/;
}
location /api/v1/inspect/networks/ {
proxy_pass http://localhost:9999/api/v1/inspect/networks/;
}
location /api/v1/inspect/serviceLBs/ {
proxy_pass http://localhost:9999/api/v1/inspect/serviceLBs/;
}
location /api/v1/inspect/endpointGroups/ {
proxy_pass http://localhost:9999/api/v1/inspect/endpointGroups/;
}
location /api/v1/rules/ {
proxy_pass http://localhost:9999/api/v1/rules/;
}
location /api/v1/policys/ {
proxy_pass http://localhost:9999/api/v1/policys/;
}
location /api/v1/inspect/policys/ {
proxy_pass http://localhost:9999/api/v1/inspect/policys/;
}
location /api/v1/endpointGroups/ {
proxy_pass http://localhost:9999/api/v1/endpointGroups/;
}
location /api/v1/serviceLBs/ {
proxy_pass http://localhost:9999/api/v1/serviceLBs/;
}
location /api/v1/tenants/ {
proxy_pass http://localhost:9999/api/v1/tenants/;
}
location /api/v1/globals/ {
proxy_pass http://localhost:9999/api/v1/globals/;
}
location /api/v1/aciGws/ {
proxy_pass http://localhost:9999/api/v1/aciGws/;
}
location /api/v1/netprofiles/ {
proxy_pass http://localhost:9999/api/v1/netprofiles/;
}
location /api/v1/appProfiles/ {
proxy_pass http://localhost:9999/api/v1/appProfiles/;
}
location /api/v1/inspect/Bgps/ {
proxy_pass http://localhost:9999/api/v1/inspect/Bgps/;
}
location /api/v1/Bgps/ {
proxy_pass http://localhost:9999/api/v1/Bgps/;
}
location /api/v1/extContractsGroups/ {
proxy_pass http://localhost:9999/api/v1/extContractsGroups/;
}
location /api/v1/auth_proxy/login/ {
proxy_pass https://localhost:10000/api/v1/auth_proxy/login/;
}
location /api/v1/auth_proxy/local_users/ {
proxy_pass https://localhost:10000/api/v1/auth_proxy/local_users/;
}
location /api/v1/auth_proxy/authorizations/ {
proxy_pass https://localhost:10000/api/v1/auth_proxy/authorizations/;
}
location /api/v1/auth_proxy/ldap_configuration/ {
proxy_pass https://localhost:10000/api/v1/auth_proxy/ldap_configuration/;
}
#volmaster
location /volmaster/volumes/ {
proxy_pass http://localhost:9005/volumes/;
}
location /volmaster/uses/mounts/ {
proxy_pass http://localhost:9005/uses/mounts/;
}
location /volmaster/snapshots/ {
proxy_pass http://localhost:9005/snapshots/;
}
location /volmaster/policies/ {
proxy_pass http://localhost:9005/policies/;
}
location /volmaster/global/ {
proxy_pass http://localhost:9005/global/;
}
#visualization
location /visualization/influx/{
proxy_pass http://localhost:8086/;
}
location /visualization/service {
proxy_pass http://localhost:4000;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}