Enable setting config securely in firmware/config/secrets.exs
This commit is contained in:
parent
fe172f018a
commit
8f99154259
7 changed files with 17 additions and 15 deletions
3
firmware/config/secrets.exs
Normal file
3
firmware/config/secrets.exs
Normal file
|
@ -0,0 +1,3 @@
|
|||
use Mix.Config
|
||||
|
||||
config :morse, :morse_message, "................"
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue