2019-10-28 06:48:04 +01:00
|
|
|
# Inherit config from this other config file
|
|
|
|
# so I only need to overwrite some values
|
2019-10-31 06:14:51 +01:00
|
|
|
inherits: dev
|
2019-10-28 06:48:04 +01:00
|
|
|
|
2020-05-27 01:41:28 +02:00
|
|
|
app_name: "{{- .AppName }} Production"
|
2019-09-27 08:19:24 +02:00
|
|
|
host_port: 0.0.0.0:8080
|
|
|
|
web_ui: false
|
|
|
|
|
2020-04-10 08:27:43 +02:00
|
|
|
# debug, error, warn, info
|
2019-11-22 06:58:03 +01:00
|
|
|
log_level: "warn"
|
2019-12-31 07:30:20 +01:00
|
|
|
|
|
|
|
# enable or disable http compression (uses gzip)
|
|
|
|
http_compress: true
|
|
|
|
|
2019-11-07 08:37:24 +01:00
|
|
|
# When production mode is 'true' only queries
|
|
|
|
# from the allow list are permitted.
|
|
|
|
# When it's 'false' all queries are saved to the
|
|
|
|
# the allow list in ./config/allow.list
|
|
|
|
production: true
|
2019-09-27 08:19:24 +02:00
|
|
|
|
|
|
|
# Throw a 401 on auth failure for queries that need auth
|
2019-11-02 22:13:17 +01:00
|
|
|
auth_fail_block: true
|
2019-09-27 08:19:24 +02:00
|
|
|
|
|
|
|
# Latency tracing for database queries and remote joins
|
|
|
|
# the resulting latency information is returned with the
|
|
|
|
# response
|
2020-03-06 11:08:54 +01:00
|
|
|
enable_tracing: false
|
|
|
|
|
|
|
|
# Watch the config folder and reload Super Graph
|
|
|
|
# with the new configs when a change is detected
|
|
|
|
reload_on_config_change: false
|
2019-09-27 08:19:24 +02:00
|
|
|
|
|
|
|
# File that points to the database seeding script
|
|
|
|
# seed_file: seed.js
|
|
|
|
|
|
|
|
# Path pointing to where the migrations can be found
|
2020-04-17 16:56:26 +02:00
|
|
|
# migrations_path: ./migrations
|
2019-09-27 08:19:24 +02:00
|
|
|
|
2020-02-10 07:45:37 +01:00
|
|
|
# Secret key for general encryption operations like
|
|
|
|
# encrypting the cursor data
|
|
|
|
# secret_key: supercalifajalistics
|
|
|
|
|
2020-03-06 05:17:51 +01:00
|
|
|
# CORS: A list of origins a cross-domain request can be executed from.
|
|
|
|
# If the special * value is present in the list, all origins will be allowed.
|
|
|
|
# An origin may contain a wildcard (*) to replace 0 or more
|
|
|
|
# characters (i.e.: http://*.domain.com).
|
|
|
|
# cors_allowed_origins: ["*"]
|
|
|
|
|
|
|
|
# Debug Cross Origin Resource Sharing requests
|
|
|
|
# cors_debug: false
|
|
|
|
|
2020-04-25 02:45:03 +02:00
|
|
|
# Default API path prefix is /api you can change it if you like
|
|
|
|
# api_path: "/data"
|
|
|
|
|
|
|
|
# Cache-Control header can help cache queries if your CDN supports cache-control
|
|
|
|
# on POST requests (does not work with not mutations)
|
|
|
|
# cache_control: "public, max-age=300, s-maxage=600"
|
|
|
|
|
2019-09-27 08:19:24 +02:00
|
|
|
# Postgres related environment Variables
|
|
|
|
# SG_DATABASE_HOST
|
|
|
|
# SG_DATABASE_PORT
|
|
|
|
# SG_DATABASE_USER
|
|
|
|
# SG_DATABASE_PASSWORD
|
|
|
|
|
|
|
|
# Auth related environment Variables
|
|
|
|
# SG_AUTH_RAILS_COOKIE_SECRET_KEY_BASE
|
|
|
|
# SG_AUTH_RAILS_REDIS_URL
|
|
|
|
# SG_AUTH_RAILS_REDIS_PASSWORD
|
|
|
|
# SG_AUTH_JWT_PUBLIC_KEY_FILE
|
|
|
|
|
2020-05-23 17:43:57 +02:00
|
|
|
# open opencensus tracing and metrics
|
|
|
|
# telemetry:
|
|
|
|
# debug: false
|
|
|
|
# metrics:
|
|
|
|
# exporter: "prometheus"
|
|
|
|
# tracing:
|
|
|
|
# exporter: "zipkin"
|
|
|
|
# endpoint: "http://zipkin:9411/api/v2/spans"
|
|
|
|
# sample: 0.6
|
|
|
|
|
2019-09-27 08:19:24 +02:00
|
|
|
database:
|
|
|
|
type: postgres
|
|
|
|
host: db
|
|
|
|
port: 5432
|
2020-06-15 09:06:50 +02:00
|
|
|
dbname: {{ .AppNameSlug -}}_production
|
2019-09-27 08:19:24 +02:00
|
|
|
user: postgres
|
2020-02-23 21:32:22 +01:00
|
|
|
password: postgres
|
2019-09-27 08:19:24 +02:00
|
|
|
#pool_size: 10
|
|
|
|
#max_retries: 0
|
2019-11-05 05:44:42 +01:00
|
|
|
#log_level: "debug"
|
|
|
|
|
|
|
|
# Set session variable "user.id" to the user id
|
|
|
|
# Enable this if you need the user id in triggers, etc
|
2019-12-31 07:30:20 +01:00
|
|
|
set_user_id: false
|
|
|
|
|
|
|
|
# database ping timeout is used for db health checking
|
2020-04-16 06:26:32 +02:00
|
|
|
ping_timeout: 5m
|
|
|
|
|
|
|
|
# Set up an secure tls encrypted db connection
|
|
|
|
enable_tls: false
|
|
|
|
|
|
|
|
# Required for tls. For example with Google Cloud SQL it's
|
|
|
|
# <gcp-project-id>:<cloud-sql-instance>"
|
|
|
|
# server_name: blah
|
|
|
|
|
|
|
|
# Required for tls. Can be a file path or the contents of the pem file
|
|
|
|
# server_cert: ./server-ca.pem
|
|
|
|
|
|
|
|
# Required for tls. Can be a file path or the contents of the pem file
|
|
|
|
# client_cert: ./client-cert.pem
|
|
|
|
|
|
|
|
# Required for tls. Can be a file path or the contents of the pem file
|
|
|
|
# client_key: ./client-key.pem
|