fix bug with public registration
This commit is contained in:
@ -11,6 +11,8 @@ config :cannery,
|
||||
ecto_repos: [Cannery.Repo],
|
||||
generators: [binary_id: true]
|
||||
|
||||
config :cannery, Cannery.Accounts, registration: System.get_env("REGISTRATION", "invite")
|
||||
|
||||
# Configures the endpoint
|
||||
config :cannery, CanneryWeb.Endpoint,
|
||||
url: [scheme: "https", host: System.get_env("HOST") || "localhost", port: "443"],
|
||||
@ -18,8 +20,7 @@ config :cannery, CanneryWeb.Endpoint,
|
||||
secret_key_base: "KH59P0iZixX5gP/u+zkxxG8vAAj6vgt0YqnwEB5JP5K+E567SsqkCz69uWShjE7I",
|
||||
render_errors: [view: CanneryWeb.ErrorView, accepts: ~w(html json), layout: false],
|
||||
pubsub_server: Cannery.PubSub,
|
||||
live_view: [signing_salt: "zOLgd3lr"],
|
||||
registration: System.get_env("REGISTRATION") || "invite"
|
||||
live_view: [signing_salt: "zOLgd3lr"]
|
||||
|
||||
config :cannery, Cannery.Application, automigrate: false
|
||||
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user