Enable setting config securely in firmware/config/secrets.exs

This commit is contained in:
Pim Kunis 2019-07-14 23:54:06 +02:00
parent fe172f018a
commit 8f99154259
7 changed files with 17 additions and 15 deletions

View file

@ -0,0 +1,3 @@
use Mix.Config
config :morse, :morse_message, "................"

View file

@ -37,6 +37,10 @@ config :nerves_init_gadget,
node_name: node_name,
node_host: :mdns_domain
if File.exists?("config/secrets.exs") do
import_config "secrets.exs"
end
# Import target specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
# Uncomment to use target specific configurations