Nginx configuration snippets

         ##
         # Gzip Settings
         ##
         gzip on;
         # gzip_vary on;
         # gzip_proxied any;
         # gzip_comp_level 6;
         # gzip_buffers 16 8k;
         # gzip_http_version 1.1;
-        #gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
+        gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
         ##
         # Virtual Host Configs
         ##
server {
         root /var/www/html;
         index index.html;
         location / {
                 try_files $uri $uri/ =404;
         }
+        location /assets {
+                expires 10d;
+                add_header Cache-Control "public, no-transform";
+        }
+
 }
server {
         root /var/www/html;
         index index.html;
         location / {
                 try_files $uri $uri/ =404;
         }
+        location /large_files/yocto/ {
+                alias /data/;
+        }
 }
server {
         root /var/www/html;
         index index.html;
+        rewrite ^/diverse/hadoop-setup.html$ /spark/hadoop-setup.html permanent;
         location / {
                 try_files $uri $uri/ =404;
         }
 }
server {
         root /var/www/html;
         index index.html;
         location / {
                 try_files $uri $uri/ =404;
         }
-	listen [::]:443 ssl ipv6only=on;
-	listen 443 ssl;
+	listen [::]:443 ssl ipv6only=on http2;
+	listen 443 ssl http2;
 }
 server {
         root /var/www/html;
         index index.html;
         location / {
                 try_files $uri $uri/ =404;
         }
+        location /circuits/ {
+                proxy_pass        http://localhost:8080;
+                proxy_set_header  X-Real-IP $remote_addr;
+                proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
+                proxy_set_header  Host $http_host;
+        }
 }
service nginx restart