From 4a8dd17baf99434dfc66938bc4cd33107f08770b Mon Sep 17 00:00:00 2001 From: zack Date: Tue, 22 Oct 2024 17:13:48 -0400 Subject: [PATCH] upd --- config/config.exs | 4 ++++ config/runtime.exs | 4 ++++ rel/env.sh.eex | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 rel/env.sh.eex diff --git a/config/config.exs b/config/config.exs index b933638..ea03a4d 100644 --- a/config/config.exs +++ b/config/config.exs @@ -22,6 +22,10 @@ config :zoeyscomputer, ZoeyscomputerWeb.Endpoint, pubsub_server: Zoeyscomputer.PubSub, live_view: [signing_salt: "uUcDyRmg"] +config :nanoid, + alphabet: NanoidConfig.alphabet(), + size: 7 + # Configures the mailer # # By default it uses the "Local" adapter which stores the emails diff --git a/config/runtime.exs b/config/runtime.exs index e6d2c8a..579a019 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -20,6 +20,10 @@ if System.get_env("PHX_SERVER") do config :zoeyscomputer, ZoeyscomputerWeb.Endpoint, server: true end +config :nanoid, + alphabet: NanoidConfig.alphabet(), + size: 7 + if config_env() == :prod do database_url = System.get_env("DATABASE_URL") || diff --git a/rel/env.sh.eex b/rel/env.sh.eex new file mode 100644 index 0000000..e891e50 --- /dev/null +++ b/rel/env.sh.eex @@ -0,0 +1,2 @@ +export NANOID_ALPHABET="_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" +export NANOID_SIZE="7"