Get config and display/hide register button
This commit is contained in:
@@ -12,7 +12,7 @@ config :mobilizon,
|
||||
config :mobilizon, :instance,
|
||||
name: System.get_env("MOBILIZON_INSTANCE_NAME") || "Localhost",
|
||||
version: "1.0.0-dev",
|
||||
registrations_open: System.get_env("MOBILIZON_INSTANCE_REGISTRATIONS_OPEN") || true
|
||||
registrations_open: System.get_env("MOBILIZON_INSTANCE_REGISTRATIONS_OPEN") || false
|
||||
|
||||
config :mime, :types, %{
|
||||
"application/activity+json" => ["activity-json"],
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
use Mix.Config
|
||||
|
||||
config :mobilizon, :instance,
|
||||
name: "Test instance",
|
||||
registrations_open: true
|
||||
|
||||
# We don't run a server during test. If one is required,
|
||||
# you can enable the server option below.
|
||||
config :mobilizon, MobilizonWeb.Endpoint,
|
||||
|
||||
Reference in New Issue
Block a user