|
@@ -10,6 +10,10 @@ events {
|
|
|
http {
|
|
http {
|
|
|
sendfile on;
|
|
sendfile on;
|
|
|
|
|
|
|
|
|
|
+ # This may be different depending on the platform.
|
|
|
|
|
+ include /etc/nginx/mime.types;
|
|
|
|
|
+ default_type application/octet-stream;
|
|
|
|
|
+
|
|
|
access_log logs/nginx_access.log;
|
|
access_log logs/nginx_access.log;
|
|
|
|
|
|
|
|
server {
|
|
server {
|
|
@@ -20,6 +24,19 @@ http {
|
|
|
location / {
|
|
location / {
|
|
|
proxy_pass http://hue;
|
|
proxy_pass http://hue;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ location /static/ {
|
|
|
|
|
+ autoindex on;
|
|
|
|
|
+
|
|
|
|
|
+ # The default Hue staticfile packaging installation directory.
|
|
|
|
|
+ alias /usr/lib/hue/build/static/;
|
|
|
|
|
+
|
|
|
|
|
+ # The default Hue staticfile parcel installation directory.
|
|
|
|
|
+ ## /opt/cloudera/parcels/CDH/lib/hue/build/static/;
|
|
|
|
|
+
|
|
|
|
|
+ expires 30d;
|
|
|
|
|
+ add_header Cache-Control public;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
include ../var/nginx-hue.conf;
|
|
include ../var/nginx-hue.conf;
|