fix bug with public registration

This commit is contained in:
2023-02-04 09:56:34 -05:00
parent 2f8af8ae4f
commit 084173909e
12 changed files with 48 additions and 44 deletions

View File

@ -44,6 +44,8 @@ config :cannery, Cannery.Repo,
pool_size: String.to_integer(System.get_env("POOL_SIZE", "10")),
socket_options: maybe_ipv6
config :cannery, Cannery.Accounts, registration: System.get_env("REGISTRATION", "invite")
config :cannery, CanneryWeb.Endpoint,
url: [scheme: "https", host: host, port: 443],
http: [
@ -52,8 +54,7 @@ config :cannery, CanneryWeb.Endpoint,
ip: interface,
port: String.to_integer(System.get_env("PORT", "4000"))
],
server: true,
registration: System.get_env("REGISTRATION", "invite")
server: true
if config_env() == :prod do
# The secret key base is used to sign/encrypt cookies and other secrets.