-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy.conf
53 lines (43 loc) · 3.5 KB
/
proxy.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
server {
# ─────────────────────────────────────────────────────────────────────────
# Ports ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
# ─────────────────────────────────────────────────────────────────────────
listen 80;
listen [::]:80 ipv6only=on;
server_name localhost;
client_max_body_size 1024m;
index index.html index.htm index.php;
charset utf-8;
root /var/www/;
# ─────────────────────────────────────────────────────────────────────────
# Client App ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
# ─────────────────────────────────────────────────────────────────────────
location / {
proxy_pass http://aixm-client;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
}
# ─────────────────────────────────────────────────────────────────────────
# Server API ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
# ─────────────────────────────────────────────────────────────────────────
location ~ ^/(api/v1) {
rewrite ^(/api/v1)/(.*)$ $1/$2 break;
proxy_pass http://aixm-nginx;
proxy_read_timeout 1000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
allow all;
}
# ─────────────────────────────────────────────────────────────────────────
# Storage ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
# ─────────────────────────────────────────────────────────────────────────
location ~ ^/(storage)/ {
proxy_pass http://aixm-nginx;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
allow all;
}
}