diff --git a/.gitignore b/.gitignore index 1048609..82bb19c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules .wrangler +.DS_Store \ No newline at end of file diff --git a/src/config.js b/src/config.js index 1cb434e..897a871 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,6 @@ export const Config = { // Hasura secret to verify the sender. - headers: { "hasura-m-auth": "zZkhKqFjqXR4g5MZCsJUZCnhCcoPyZ" }, + headers: { "hasura-m-auth": process.env.HASURA_M_AUTH }, // A list of queries we'd like to cache. // @@ -8,20 +8,21 @@ export const Config = { // indentation you'd prefer, as the hashing key mechanism works in terms of // the parsed query, which doesn't preserve whitespace. queries_to_cache: [ - { query: "query test { artist { name } }" + { + query: "query test { artist { name } }", // The time for which a value will survive in the cache. After this, the // cache will be invalidated, and the next occurrence of the query will // repopulate the cache. - , time_to_live: 6 - } + time_to_live: 6, + }, ], // The URL for a Redis instance. - redis_url: "redis://redis:6379", + redis_url: process.env.GLOBAL_REDIS_INSTANCE_URL, // The URL for an opentelemetry collector. - otel_endpoint: "http://jaeger:4318/v1/traces", + otel_endpoint: process.env.GLOBAL_OTEL_EXPORTER_OTLP_ENDPOINT, // Any other OpenTelemetry headers to send to the collector. // otel_headers: { Authorization: 'pat ' }