Browse Source

Upload files to 'nginx'

master
DrakopoulosAj 5 years ago
parent
commit
8de61de9a9
  1. 7
      nginx/Dockerfile
  2. 59
      nginx/bde-hadoop.css
  3. 35
      nginx/default.conf
  4. 16
      nginx/materialize.min.css

7
nginx/Dockerfile

@ -0,0 +1,7 @@
FROM nginx
MAINTAINER "Ivan Ermilov <mailto:ivan.s.ermilov@gmail.com>"
COPY default.conf /etc/nginx/conf.d/default.conf
COPY materialize.min.css /data/bde-css/materialize.min.css
COPY bde-hadoop.css /data/bde-css/bde-hadoop.css

59
nginx/bde-hadoop.css

@ -0,0 +1,59 @@
body {
background: #F1F1F1;
}
body > .container {
margin: 5rem auto;
background: white;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
header.bs-docs-nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3rem;
border: none;
background: #A94F74;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
header.bs-docs-nav .navbar-brand {
background: inherit;
}
#ui-tabs .active a {
background: #B96A8B;
}
#ui-tabs > li > a {
color: white;
}
.navbar-inverse .navbar-nav > .dropdown > a .caret {
border-top-color: white;
border-bottom-color: white;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background-color: #B96A8B;
}
.dropdown-menu > li > a {
color: #A94F74;
}
.modal-dialog .panel-success {
border-color: lightgrey;
}
.modal-dialog .panel-heading {
background-color: #A94F74 !important;
}
.modal-dialog .panel-heading select {
margin-top: 1rem;
}

35
nginx/default.conf

@ -0,0 +1,35 @@
server {
listen 80;
server_name localhost;
root /data;
gzip on;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Accept-Encoding "";
}
location /bde-css/ {
}
}
server {
listen 127.0.0.1:8000;
location / {
proxy_pass http://127.0.0.1:8001;
sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="/bde-css/materialize.min.css">
<link rel="stylesheet" type="text/css" href="/bde-css/bde-hadoop.css"></head>';
sub_filter_once on;
proxy_set_header Accept-Encoding "";
}
}
server {
listen 127.0.0.1:8001;
gunzip on;
location / {
proxy_pass http://namenode:50070;
proxy_set_header Accept-Encoding gzip;
}
}

16
nginx/materialize.min.css

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save