11import Config
22
3- config :octocon , Octocon.MessageRepo ,
4- username: "postgres" ,
5- password: "postgres" ,
6- hostname: "localhost" ,
7- database: "octocon_dev" ,
8- port: "4002" ,
9- stacktrace: true ,
10- show_sensitive_data_on_connection_error: true ,
11- pool_size: 10
12-
133config :octocon , :primary_node_count , 1
144
155# Discord channel scope
@@ -69,10 +59,31 @@ config :phoenix, :stacktrace_depth, 20
6959# Initialize plugs at runtime for faster development compilation
7060config :phoenix , :plug_init_mode , :runtime
7161
62+ config :octocon , Octocon.Repo ,
63+ nodes: [ "scylla-nam" ] ,
64+ load_balancing:
65+ { Xandra.Cluster.LoadBalancingPolicy.DCAwareRoundRobin ,
66+ [ local_data_center: "nam" ] } ,
67+ refresh_topology_interval: :timer . minutes ( 1 ) ,
68+ sync_connect: :infinity ,
69+ pool_size: 10
70+
71+ config :octocon , Octocon.MessageRepo ,
72+ username: "postgres" ,
73+ password: "postgres" ,
74+ hostname: "msg-db" ,
75+ database: "octocon_dev" ,
76+ port: "5432" ,
77+ stacktrace: true ,
78+ show_sensitive_data_on_connection_error: true ,
79+ pool_size: 10
80+
7281# Discord token
7382config :nostrum ,
7483 token: "TODO"
7584
85+ config :octocon , :current_db_region , "nam"
86+
7687# Discord auth
7788config :ueberauth , Ueberauth.Strategy.Discord.OAuth ,
7889 client_id: "TODO" ,
@@ -86,7 +97,9 @@ config :ueberauth, Ueberauth.Strategy.Google.OAuth,
8697# Guardian
8798config :octocon , Octocon.Auth.Guardian ,
8899 issuer: "octocon" ,
89- secret_key: "TODO"
100+ secret_key: "Vui-nVt36x8I-8EWN8Fg5xvv588aniMu5eubeD7ZTdwIBdwt4qHDVXyL-2NjAeE1"
101+
102+ config :octocon , :pepper , "6dtfTrHA"
90103
91104config :waffle ,
92105 storage: Waffle.Storage.S3 ,
0 commit comments