{"id":20930751,"url":"https://github.com/intermine/cdn","last_synced_at":"2025-05-13T19:32:44.681Z","repository":{"id":3452344,"uuid":"4505859","full_name":"intermine/CDN","owner":"intermine","description":"JavaScript, Cascading Style Sheet Content Delivery Network","archived":false,"fork":false,"pushed_at":"2021-02-08T17:55:27.000Z","size":24755,"stargazers_count":9,"open_issues_count":0,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T06:51:12.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cdn.intermine.org/","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intermine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-31T09:24:44.000Z","updated_at":"2023-09-03T20:20:16.000Z","dependencies_parsed_at":"2022-08-27T09:01:44.483Z","dependency_job_id":null,"html_url":"https://github.com/intermine/CDN","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intermine%2FCDN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intermine%2FCDN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intermine%2FCDN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intermine%2FCDN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intermine","download_url":"https://codeload.github.com/intermine/CDN/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254013134,"owners_count":21999365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T21:36:15.553Z","updated_at":"2025-05-13T19:32:39.671Z","avatar_url":"https://github.com/intermine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InterMine Content Delivery Network\n\nThis repository hosts web libraries used in the [InterMine](http://intermine.org) ecosystem.\n\n## Host your own\n\nThe main repo is hosted by [GitHub](https://status.github.com/), but sometimes\nit goes down. Before that happens, we encourage you to host your own copy. Your\napps will potentially work faster, depending on your location, and you will be\nfully in control.\n\nFollow these steps:\n\n1. Make a fork of the following repo:\n   [git@github.com:intermine/CDN.git](git@github.com:intermine/CDN.git).\n1. Serve the repo using a static web server, such as\n   [Apache](http://httpd.apache.org/) or [nginx](http://nginx.org/en/).  Point\n   your InterMine web-application at your local CDN installation by editing the\n   `global.web.properties` file on the line where it says `head.cdn.location`:\n\n```properties\nhead.cdn.location = http://cdn.myserver.com\n```\n\n## Making Use of Concatenation\n\nIf you want you can make use of the CGI script in the `cgi` directory to\noptimise requrests to the CDN. Doing so requires a web-server which supports CGI\nscripts. This is simple enough for Apache, for which a suitable configuration\nstanza is presented below:\n\n```apache\nAlias /cdn /path/to/clone/of/CDN\n\u003cDirectory /path/to/clone/of/CDN\u003e\n\tOptions Indexes FollowSymLinks\n    Require all granted\n    AllowOverride FileInfo Options=ExecCGI\n\u003c/Directory\u003e\n```\n\nThis is also possible with nginx with a bit more work and research.\n\nWhen this feature is enabled requests can be made of the form\n`http://cdn.myserver.com/cgi/concat.rb?js=X\u0026js=Y` which will return the two JavaScript\nfiles concatenated together. These requests will be served with long expiries,\nwhich can be disabled by supplying the `dev` parameter. The InterMine web-app\nwill automatically produce these optimised requests if the following\nconfiguration parameter is provided:\n\n```properties\nhead.cdn.cgi-enabled = true\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintermine%2Fcdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintermine%2Fcdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintermine%2Fcdn/lists"}