Skip to content

Commit

Permalink
config naming updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Dec 28, 2023
1 parent aa00237 commit 518d87c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ config :nerves_hub, NervesHub.SwooshMailer, adapter: Swoosh.Adapters.Local

config :nerves_hub, NervesHub.RateLimit, limit: 10

config :nerves_hub, NervesHubWeb.DeviceSocketSharedSecretAuth, enabled: true

config :sentry, environment_name: :development
4 changes: 2 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ if config_env() == :prod do
],
server: true

config :nerves_hub, NervesHubWeb.DeviceSocketTokenAuth,
enabled: System.get_env("DEVICE_TOKEN_AUTH", "false") == "true"
config :nerves_hub, NervesHubWeb.DeviceSocketSharedSecretAuth,
enabled: System.get_env("DEVICE_SHARED_SECRET_AUTH", "false") == "true"
end

if nerves_hub_app in ["all", "device"] do
Expand Down
2 changes: 2 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ config :nerves_hub, NervesHub.SwooshMailer, adapter: Swoosh.Adapters.Test

config :nerves_hub, NervesHub.RateLimit, limit: 100

config :nerves_hub, NervesHubWeb.DeviceSocketSharedSecretAuth, enabled: true

config :sentry, environment_name: :test

0 comments on commit 518d87c

Please sign in to comment.