Skip to content

Instantly share code, notes, and snippets.

@daviddahl
Created April 9, 2016 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddahl/fb4de208398099baca545f6c816085e1 to your computer and use it in GitHub Desktop.
Save daviddahl/fb4de208398099baca545f6c816085e1 to your computer and use it in GitHub Desktop.
configuration.js
function () {
/*
* Write Configuration Properties Here:
*/
var PROTO = 'https://';
var HOST = 'dev.nulltxt.se';
var PORT = null;
var API_PATH = 'api/v1/';
// Unique partner key in the database
var PARTNER_ID = 'bnVsbHR4dDIwMDYxMGZvb2Fi';
// Add more system configuration properties here
var PASSWORD_RESET_URL = 'https://dev.nulltxt.se/password_reset/recover/';
// End system configuration properties
/*
* This file must be copied to
* 'js/tvrunway/configuration.js'
* in order to use this configuration
* CONFIG OBJECT *** DO NOT WRITE BELOW HERE
*/
var config = {
dataHost: PROTO +
HOST +
(PORT ? ':' + PORT : '') +
'/' +
API_PATH,
partnerId: PARTNER_ID,
passwordResetUrl: PASSWORD_RESET_URL
};
window.__configuration__ = config;
/* Note:
* Inside the TVRunway constructor we grab this ^^ object,
* clone it and set it as tvrunway.configuration
* Then delete the __configuration__ object
*/
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment