Specify in the environment:
ISSUER_NAME
: Your site nameISSUER_URL
: Base url of your issuer siteMANDRILL_KEY
: Mandrill API keyAWS_KEY
: AWS keyAWS_SECRET
: AWS secretAWS_BUCKET
: AWS bucketEMAIL_SUBJECT
: Subject of badge award emailsPORT
: Port to use, default: 3001STATIC_ASSET_URL
: If set, this url will be prepended to all static asset pathsAWS_PATH
: A base path to use within the bucket, default: /
PRIVATE_KEY
: Your private key, defaults to reading from PRIVATE_KEY_FILE
PRIVATE_KEY_FILE
: Path to private key .pem, default: ./rsa-private.pem
ASSERTION_SALT
: Salt to use when hashing email addresses, default: undefinedASSERTION_EXPIRES
: Number of days after which an assertion expires, default: no expirationDEBUG
: Turn debug on, default: falseor write a ./config.json
file with similar keys, like:
{
"port": 3002,
"privateKey": "path/to/private_key.pem",
"issuer": {
"name": "My Org Name Or Whatever",
"url": "http://full-url.org",
},
"mandrill": {
"key": "<KEY>",
},
"aws": {
"key": "<KEY>",
"secret": "<SHHHH>",
"bucket": "my_bucket",
"path": "my/path/"
},
"email": {
"subject": "Hi"
},
"assertion": {
"salt": "salty",
"expires": 30
}
}
Write a lifecycle rule on your S3 bucket to
expire or transition the data under your AWS_PATH
directory after ASSERTION_EXPIRES
days.