changeset 265:a8fd79a8d170 default tip

Update with better config example
author nanaya <me@nanaya.net>
date Sun, 09 Feb 2025 03:55:18 +0900
parents 4f86037f6e6a
children
files config/config_init.rb
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/config/config_init.rb	Sun Feb 09 03:48:26 2025 +0900
+++ b/config/config_init.rb	Sun Feb 09 03:55:18 2025 +0900
@@ -1,12 +1,9 @@
 $cfg = {
-  twitter: [
-    {
-      consumer_key: ENV["CONSUMER_KEY"],
-      consumer_secret: ENV["CONSUMER_SECRET"],
-      access_token: ENV["ACCESS_TOKEN"],
-      access_token_secret: ENV["ACCESS_TOKEN_SECRET"]
+  headers: {
+    identifier: {
+      # fill in here
     }
-  ],
+  },
   redis_server: ENV["REDIS_SERVER"]
 }
 
@@ -14,4 +11,6 @@
 
 require config_local if File.exist? config_local
 
+$cfg[:headers] = $cfg[:headers].to_a
+
 $cfg.freeze