Skip to content

Commit

Permalink
use secrets from env, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrude committed Aug 12, 2023
1 parent 8835328 commit 431a579
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions drumline-server/secrets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// todo: use keys from doppler
export const SECRET_PUZZLE_ID_SALT = 'keyboard cat';
export const SECRET_COOKIE_SALT = 'keyboard cat';
export const SECRET_HASH_ALGORITHM = 'SHA-512';
export const SECRET_REDIS_URL = 'redis://localhost:6379';
export const SECRET_REDIS_USERNAME = undefined;
export const SECRET_REDIS_PASSWORD = undefined;

export const SECRET_PUZZLE_ID_SALT = process.env.SECRET_PUZZLE_ID_SALT || 'keyboard cat';
export const SECRET_COOKIE_SALT = process.env.SECRET_COOKIE_SALT || 'keyboard cat';
export const SECRET_HASH_ALGORITHM = process.env.SECRET_HASH_ALGORITHM || 'SHA-512';
// export const SECRET_REDIS_URL = 'redis://localhost:6379';
// export const SECRET_REDIS_USERNAME = undefined;
// export const SECRET_REDIS_PASSWORD = undefined;

0 comments on commit 431a579

Please sign in to comment.