-
Notifications
You must be signed in to change notification settings - Fork 46
/
config.js
19 lines (18 loc) · 737 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require('dotenv').config()
module.exports = {
host: process.env.LOOKER_EMBED_HOST || 'self-signed.looker.com:9999',
api_url:
process.env.LOOKER_EMBED_API_URL || 'https://self-signed.looker.com:19999',
secret: process.env.LOOKER_EMBED_SECRET,
demo_host: process.env.LOOKER_DEMO_HOST || 'localhost',
demo_port: process.env.LOOKER_DEMO_PORT || 8080,
client_id: process.env.LOOKER_CLIENT_ID,
client_secret: process.env.LOOKER_CLIENT_SECRET,
verify_ssl: process.env.LOOKER_VERIFY_SSL === 'true' || false,
use_embed_domain:
process.env.LOOKER_USE_EMBED_DOMAIN?.toLowerCase() === 'true' || false,
cookie_secret: (process.env.COOKIE_SECRET || 'secret').padEnd(
32,
'ABCDEFGHIJKLMNOPQRSTUVWZYZ0123456'
),
}