mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
TODO: - [x] Cluster formation for all API and web nodes - [x] Injest Docker logs to Stackdriver - [x] Fix assets building for prod To finish later: - [ ] Structured logging: https://issuetracker.google.com/issues/285950891 - [ ] Better networking policy (eg. use public postmark ranges and deny all unwanted egress) - [ ] OpenTelemetry collector for Google Stackdriver - [ ] LoggerJSON.Plug integration --------- Signed-off-by: Andrew Dryga <andrew@dryga.com> Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
58 lines
1.4 KiB
Elixir
58 lines
1.4 KiB
Elixir
import Config
|
|
|
|
###############################
|
|
##### Domain ##################
|
|
###############################
|
|
|
|
config :domain, Domain.Repo,
|
|
pool_size: 10,
|
|
show_sensitive_data_on_connection_error: false
|
|
|
|
###############################
|
|
##### Web #####################
|
|
###############################
|
|
|
|
config :web, Web.Endpoint,
|
|
cache_static_manifest: "priv/static/cache_manifest.json",
|
|
server: true
|
|
|
|
###############################
|
|
##### API #####################
|
|
###############################
|
|
|
|
config :api, API.Endpoint, server: true
|
|
|
|
###############################
|
|
##### Third-party configs #####
|
|
###############################
|
|
|
|
config :phoenix, :filter_parameters, [
|
|
"password",
|
|
"secret",
|
|
"token",
|
|
"public_key",
|
|
"private_key",
|
|
"preshared_key"
|
|
]
|
|
|
|
# Do not print debug messages in production and handle all
|
|
# other reports by Elixir Logger with JSON back-end so that.
|
|
# we can parse them in log analysys tools.
|
|
# Notice: SASL reports turned off because of their verbosity.
|
|
# Notice: Log level can be overriden on production with LOG_LEVEL environment variable.
|
|
config :logger,
|
|
backends: [LoggerJSON],
|
|
utc_log: true,
|
|
level: :info,
|
|
handle_sasl_reports: false,
|
|
handle_otp_reports: true
|
|
|
|
config :logger_json, :backend,
|
|
json_encoder: Jason,
|
|
formatter: LoggerJSON.Formatters.GoogleCloudLogger,
|
|
metadata: :all
|
|
|
|
config :logger, level: :info
|
|
|
|
config :swoosh, local: false
|