super-graph/prod.yml

79 lines
1.6 KiB
YAML
Raw Normal View History

2019-03-24 14:57:29 +01:00
title: Super Graph Production
host_port: 0.0.0.0:8080
web_ui: false
debug_level: 0
2019-04-01 14:55:46 +02:00
enable_tracing: false
2019-04-08 08:47:59 +02:00
# Throw a 401 on auth failure for queries that need auth
# valid values: always, per_query, never
2019-03-24 14:57:29 +01:00
auth_fail_block: always
# Postgres related environment Variables
2019-03-24 14:57:29 +01:00
# SG_DATABASE_HOST
# SG_DATABASE_PORT
# SG_DATABASE_USER
# SG_DATABASE_PASSWORD
# Auth related environment Variables
2019-04-08 08:47:59 +02:00
# SG_AUTH_RAILS_COOKIE_SECRET_KEY_BASE
# SG_AUTH_RAILS_REDIS_URL
# SG_AUTH_RAILS_REDIS_PASSWORD
# SG_AUTH_JWT_PUBLIC_KEY_FILE
2019-03-24 14:57:29 +01:00
# inflections:
# person: people
# sheep: sheep
2019-04-08 08:47:59 +02:00
auth:
type: cookie
2019-03-24 14:57:29 +01:00
cookie: _app_session
2019-04-08 08:47:59 +02:00
rails_cookie:
secret_key_base: caf335bfcfdb04e50db5bb0a4d67ab9...
# rails_memcache:
# host: 127.0.0.1
2019-03-24 14:57:29 +01:00
2019-04-08 08:47:59 +02:00
# rails_redis:
# url: redis://127.0.0.1:6379
# password: ""
# max_idle: 80,
# max_active: 12000,
2019-03-24 14:57:29 +01:00
2019-04-08 08:47:59 +02:00
# jwt:
# provider: auth0
# secret: abc335bfcfdb04e50db5bb0a4d67ab9
# public_key_file: /secrets/public_key.pem
# public_key_type: ecdsa #rsa
2019-03-24 14:57:29 +01:00
database:
type: postgres
host: db
port: 5432
dbname: app_development
user: postgres
2019-04-08 08:47:59 +02:00
password: ''
2019-03-24 14:57:29 +01:00
#pool_size: 10
#max_retries: 0
#log_level: "debug"
2019-04-08 08:47:59 +02:00
# Define variables here that you want to use in filters
2019-03-24 14:57:29 +01:00
variables:
account_id: "select account_id from users where id = $user_id"
2019-04-08 08:47:59 +02:00
# Define defaults to for the field key and values below
defaults:
filter: ["{ id: { _eq: $user_id } }"]
# Fields and table names that you wish to block
blacklist:
- ar_internal_metadata
- schema_migrations
- secret
- password
- encrypted
- token
2019-03-24 14:57:29 +01:00
2019-04-08 08:47:59 +02:00
fields:
- name: users
filter: ["{ id: { _eq: $user_id } }"]