Get config and display/hide register button

This commit is contained in:
Chocobozzz
2019-03-22 13:58:19 +01:00
parent e864b38ec6
commit 4fa78d7cd2
9 changed files with 48 additions and 48 deletions

View File

@@ -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"],

View File

@@ -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,