Skip to content

Instantly share code, notes, and snippets.

@tingletech
Last active August 29, 2015 14:06
Show Gist options
  • Save tingletech/528bb1ab8f14572d4b2f to your computer and use it in GitHub Desktop.
Save tingletech/528bb1ab8f14572d4b2f to your computer and use it in GitHub Desktop.

Config

The third factor in the 12 factor methodology is "Store config in the environment".

  • REGISTRY_URL -- registry data, default to https://registry.cdlib.org

  • SOLR_API -- solr index, default to $REGISTRY_URL/solr/dc-collection

  • REGISTRY_API -- JSON authority files $REGISTRY_URL/api/v1

  • ASSET_BASE -- base URL for CSS and JS, default to ??

  • CSS_BASE -- $ASSET_BASE/css

  • JS_BASE -- $ASSET_BASE/js

  • IMAGE_BASE

  • THUMBNAIL_BASE -- $IMAGE_BASE/thumbnail

  • IIIF_BASE -- $IMAGE_BASE/iiif

  • BUCKET_BASE -- base name string for s3 bucket that stores harvested images, default to ucldc

CNAMEs

???

PUBLIC_URL beta.calisphere.org??? CNAME to a cloudfront

??cnd-beta.calisphere.org (cookieless domain) CNAME to second cloudfront

CloudFront

http://{}.cloudfront.net/web -- CSS/JS compiled by yomen or similar and stored on S3.

http://{}.cloudfront.net/thumbnails -- thunbnail generator on elastic beanstalk

http://{}.cloudfront.net/iiif -- Loris IIIF server on elastic beanstalk

put cloudfront in front of solr and registry API as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment