mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-12-21 19:58:47 -05:00
Add configurable loglevel
This commit is contained in:
parent
4f809d72b8
commit
f991dc0329
@ -61,6 +61,10 @@ MIX_ENV=prod
|
||||
# The git tag, revision, or branch to check out on build
|
||||
PLEROMA_VERSION=develop
|
||||
|
||||
# The loglevel to use
|
||||
# (error/warn/info/debug)
|
||||
PLEROMA_LOGLEVEL=warn
|
||||
|
||||
# The domain/scheme where pleroma will be hosted
|
||||
# URL is a bare TLD
|
||||
# SCHEME is the protocol without "://"
|
||||
|
@ -101,6 +101,7 @@ define(<env_inline_fb>, <${upcase($1):-$2}>)
|
||||
"env(<postgres_password>)",
|
||||
|
||||
"env(<pleroma_url>)",
|
||||
"env(<pleroma_loglevel>)",
|
||||
"env(<pleroma_scheme>)",
|
||||
"env(<pleroma_port>)",
|
||||
"env(<pleroma_secret_key_base>)",
|
||||
|
@ -14,6 +14,8 @@ defmodule Docker do
|
||||
end
|
||||
end
|
||||
|
||||
config :logger, level: String.to_atom(Docker.env(:loglevel) || "info")
|
||||
|
||||
config :pleroma, Pleroma.Web.Endpoint,
|
||||
url: [
|
||||
host: Docker.env(:url),
|
||||
|
Loading…
Reference in New Issue
Block a user