File tree 3 files changed +25
-90
lines changed
3 files changed +25
-90
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ FROM nginx
3
3
MAINTAINER "Ivan Ermilov <mailto:[email protected] >"
4
4
5
5
COPY default.conf /etc/nginx/conf.d/default.conf
6
- COPY custom.html /data/bde-css/custom.html
6
+ COPY materialize.min.css /data/bde-css/materialize.min.css
7
+ COPY bde-hadoop.css /data/bde-css/bde-hadoop.css
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,22 +3,33 @@ server {
3
3
server_name localhost;
4
4
5
5
root /data;
6
- add_after_body /bde-css/custom.html ;
6
+ gzip on ;
7
7
8
8
location / {
9
- proxy_http_version 1.1;
10
- proxy_set_header Upgrade $http_upgrade;
11
- proxy_set_header Connection 'upgrade';
12
- proxy_cache_bypass $http_upgrade;
13
- proxy_set_header Host $host;
14
- proxy_set_header X-Real-IP $remote_addr;
15
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
- proxy_set_header X-NginX-Proxy true;
17
- proxy_redirect off;
18
- proxy_pass http://namenode:50070;
19
- #rewrite ^/sparql/(.*)$ /$1 break;
9
+ proxy_pass http://127.0.0.1:8000;
10
+ proxy_set_header Accept-Encoding "";
20
11
}
21
12
22
13
location /bde-css/ {
23
14
}
24
15
}
16
+
17
+ server {
18
+ listen 127.0.0.1:8000;
19
+ location / {
20
+ proxy_pass http://127.0.0.1:8001;
21
+ sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="/bde-css/materialize.min.css">
22
+ <link rel="stylesheet" type="text/css" href="/bde-css/bde-hadoop.css"></head>';
23
+ sub_filter_once on;
24
+ proxy_set_header Accept-Encoding "";
25
+ }
26
+ }
27
+
28
+ server {
29
+ listen 127.0.0.1:8001;
30
+ gunzip on;
31
+ location / {
32
+ proxy_pass http://namenode:50070;
33
+ proxy_set_header Accept-Encoding gzip;
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments