-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdim-nginx.conf
70 lines (64 loc) · 2.42 KB
/
dim-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
server {
listen 8000;
server_name _;
error_page 500 502 503 504 /50x.html;
#access_log /var/log/nginx/host.access.log main;
location /web {
proxy_pass http://dim-web:8000/;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
add_header Last-Modified $sent_http_Expires;
proxy_set_header x-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /static {
proxy_pass http://dim-web:8000/;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
add_header Last-Modified $sent_http_Expires;
proxy_set_header x-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /dim-cas {
proxy_pass http://dim-cas:8000/;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
add_header Last-Modified $sent_http_Expires;
proxy_set_header x-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /sso {
proxy_pass http://cas:8443/sso;
proxy_set_header Host $http_host;
proxy_set_header x-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
proxy_pass http://dim:8000/;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
add_header Last-Modified $sent_http_Expires;
proxy_set_header x-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}