summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBen Busby <noreply+git@benbusby.com>2021-10-22 20:07:07 -0600
committerBen Busby <noreply+git@benbusby.com>2021-10-22 20:07:07 -0600
commit76faebd234644d77429ddcefaf8ccdb8a1beff0d (patch)
treefc0dae3dc4940aa5d84878fa0ed8b27b598e1c42 /config
parent9a6d68021310a75638a664c2f3716e32ed5980df (diff)
downloadfarside-76faebd234644d77429ddcefaf8ccdb8a1beff0d.tar.gz
Move constants to config, update string formatting
Not sure if this is the Elixir-y way to do this, but seems more logical than hardcoding values such as redis connection. Also went through and improved how string formatting was performed throughout the app. Rather than "combining" <> "strings" this way, I'm now just doing "#${variable}#{formatting}", which looks a lot cleaner.
Diffstat (limited to 'config')
-rw-r--r--config/config.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
new file mode 100644
index 0000000..44b3af8
--- /dev/null
+++ b/config/config.exs
@@ -0,0 +1,7 @@
+import Config
+
+config :privacy_revolver,
+ redis_conn: "redis://localhost:6379",
+ fallback_str: "-fallback",
+ update_file: ".update-results",
+ services_json: "services.json"