adds pubsub resource uri placeholder

This commit is contained in:
@wwwjim 2020-10-24 13:05:13 -07:00
parent 725d73deee
commit 7169ebda8a
2 changed files with 8 additions and 5 deletions

View File

@ -9,6 +9,8 @@ if (!IS_PRODUCTION) {
require("dotenv").config();
}
// NOTE(jim):
// Slate
export const POSTGRES_ADMIN_PASSWORD = process.env.POSTGRES_ADMIN_PASSWORD;
export const POSTGRES_ADMIN_USERNAME = process.env.POSTGRES_ADMIN_USERNAME;
export const POSTGRES_HOSTNAME = process.env.POSTGRES_HOSTNAME;
@ -16,24 +18,24 @@ export const POSTGRES_DATABASE = process.env.POSTGRES_DATABASE;
export const JWT_SECRET = process.env.JWT_SECRET;
export const LOCAL_PASSWORD_ROUNDS_MANUAL = process.env.LOCAL_PASSWORD_ROUNDS_MANUAL;
export const LOCAL_PASSWORD_ROUNDS = process.env.LOCAL_PASSWORD_ROUNDS;
// TODO(jim):
// Brittle, don't let people know the number of times something is salted.
// Not a big deal for testing at the moment.
export const LOCAL_PASSWORD_SECRET = `$2b$${LOCAL_PASSWORD_ROUNDS}$${
process.env.LOCAL_PASSWORD_SECRET
}`;
// NOTE(jim): Custom avatars
export const AVATAR_SLATE_ID = process.env.AVATAR_SLATE_ID;
// NOTE(jim): Textile secrets
export const TEXTILE_HUB_KEY = process.env.TEXTILE_HUB_KEY;
export const TEXTILE_HUB_SECRET = process.env.TEXTILE_HUB_SECRET;
export const TEXTILE_HUB_STAGING_HOST = process.env.TEXTILE_HUB_STAGING_HOST;
// NOTE(jim): Slack updates
export const SOCIAL_SLACK_WEBHOOK_KEY = process.env.SOCIAL_SLACK_WEBHOOK_KEY;
export const SUPPORT_SLACK_WEBHOOK_KEY = process.env.SUPPORT_SLACK_WEBHOOK_KEY;
export const TEXTILE_SLACK_WEBHOOK_KEY = process.env.TEXTILE_SLACK_WEBHOOK_KEY;
// NOTE(jim): customize resources
// NOTE(jim): External servers
export const RESOURCE_URI_UPLOAD = process.env.RESOURCE_URI_UPLOAD;
export const RESOURCE_URI_STORAGE_UPLOAD = process.env.RESOURCE_URI_STORAGE_UPLOAD;
export const RESOURCE_URI_PUBSUB = process.env.RESOURCE_URI_PUBSUB;

View File

@ -35,6 +35,7 @@ const EXTERNAL_RESOURCES = {
upload: Strings.isEmpty(Environment.RESOURCE_URI_UPLOAD)
? null
: Environment.RESOURCE_URI_STORAGE_UPLOAD,
pubsub: Strings.isEmpty(Environment.RESOURCE_URI_PUBSUB) ? null : Environment.Resource_URI_PUBSUB,
};
app.prepare().then(async () => {