Git Product home page Git Product logo

cdn's Introduction

#InterMine Content Delivery Network

This repository hosts web libraries used in the InterMine ecosystem.

##Host your own

The main repo is hosted by GitHub, but sometimes it goes down. Before that happens, we encourage you to host your own copy. Your apps will potentially work faster, depending on your location, and you will be fully in control.

Follow these steps:

  1. Make a fork of the following repo: [email protected]:intermine/CDN.git.
  2. Serve the repo using a static web server, such as Apache or nginx. Point your InterMine web-application at your local CDN installation by editing the global.web.properties file on the line where it says head.cdn.location:
head.cdn.location = http://cdn.myserver.com

Making Use of Concatenation

If you want you can make use of the CGI script in the cgi directory to optimise requrests to the CDN. Doing so requires a web-server which supports CGI scripts. This is simple enough for Apache, for which a suitable configuration stanza is presented below:

Alias /cdn /path/to/clone/of/CDN
<Directory /path/to/clone/of/CDN>
	Options Indexes FollowSymLinks
    Require all granted
    AllowOverride FileInfo Options=ExecCGI
</Directory>

This is also possible with nginx with a bit more work and research.

When this feature is enabled requests can be made of the form http://cdn.myserver.com/cgi/concat.rb?js=X&js=Y which will return the two JavaScript files concatenated together. These requests will be served with long expiries, which can be disabled by supplying the dev parameter. The InterMine web-app will automatically produce these optimised requests if the following configuration parameter is provided:

head.cdn.cgi-enabled = true

cdn's People

Contributors

alexkalderimis avatar ryankirkman avatar joshkh avatar thomasdavis avatar radekstepan avatar xrmx avatar yochannah avatar codler avatar sergiocontrino avatar meltingice avatar alfredwassermann avatar zqueal avatar iynaix avatar jeromegn avatar koggdal avatar feelepxyz avatar jongalloway avatar viljaste avatar mathiasbynens avatar painteddigital avatar olivernn avatar sergiokas avatar pitr avatar yanneves avatar utsengar avatar tjmcewan avatar giver avatar ryancole avatar roryf avatar reitermarkus avatar

Stargazers

 avatar Mohamed Badar Hashimi 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.