Giter VIP home page Giter VIP logo

spotlight-gel's Introduction

spotlight-gel

gel, is a transparent material that is used in theater, event production, photography, videography and cinematography to color light and for color correction. (wikipedia

What does it do

This is a hacked up fork of go-sitemirror that is used as a temporary way to serve a static/sanitised mirror of spotlight while it remains behind an internal network.

  • Crawls spotlight on it's internal address and warms a cache of it's content
  • onto disk Automatically refreshes the cache periodically (every few hours)
  • Exposes a http server that presents a mirror of spotlight on the original
  • URLs serving only from the cached data Strips out script tags from content
  • to disable js

Deploying

This application is intended to steal the public route from spotlight and be pushed to GOV.UK PaaS alongside spotlight and pointing at spotlight's internal app domain.

So first ensure that spotlight is configured with an apps.internal domain, and does not have a public route.

Then add a network-policy so that "gel" can talk to "spotlight"...

cf add-network-policy performance-platform-spotlight-gel-staging \
	--destination-app performance-platform-spotlight-staging \
	--protocol tcp \
	--port 8080

Then push the app...

cf push -f manifest.staging.yaml

Wait for ages (takes about an hour to "warm up" the cache).

Then check it's serving...

curl http://performance-platform-spotlight-staging.cloudapps.digital

spotlight-gel's People

Contributors

daohoangson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.