@@ -79,6 +79,7 @@ func init() {
7979 rootCmd .PersistentFlags ().String ("storage-orchestrator-clickhouse-password" , "" , "Clickhouse password for orchestrator storage" )
8080 rootCmd .PersistentFlags ().Bool ("storage-orchestrator-clickhouse-asyncInsert" , false , "Clickhouse async insert for orchestrator storage" )
8181 rootCmd .PersistentFlags ().Int ("storage-orchestrator-clickhouse-maxRowsPerInsert" , 100000 , "Clickhouse max rows per insert for orchestrator storage" )
82+ rootCmd .PersistentFlags ().Bool ("storage-orchestrator-clickhouse-disableTLS" , false , "Clickhouse disableTLS for orchestrator storage" )
8283 rootCmd .PersistentFlags ().Int ("storage-orchestrator-memory-maxItems" , 0 , "Max items for orchestrator memory storage" )
8384 rootCmd .PersistentFlags ().Int ("storage-orchestrator-redis-poolSize" , 0 , "Redis pool size for orchestrator storage" )
8485 rootCmd .PersistentFlags ().String ("storage-orchestrator-redis-addr" , "" , "Redis address for orchestrator storage" )
@@ -90,11 +91,15 @@ func init() {
9091 rootCmd .PersistentFlags ().String ("storage-main-clickhouse-password" , "" , "Clickhouse password for main storage" )
9192 rootCmd .PersistentFlags ().Bool ("storage-main-clickhouse-asyncInsert" , false , "Clickhouse async insert for main storage" )
9293 rootCmd .PersistentFlags ().Int ("storage-main-clickhouse-maxRowsPerInsert" , 100000 , "Clickhouse max rows per insert for main storage" )
94+ rootCmd .PersistentFlags ().Bool ("storage-main-clickhouse-disableTLS" , false , "Clickhouse disableTLS for main storage" )
9395 rootCmd .PersistentFlags ().String ("storage-staging-clickhouse-username" , "" , "Clickhouse username for staging storage" )
9496 rootCmd .PersistentFlags ().String ("storage-staging-clickhouse-password" , "" , "Clickhouse password for staging storage" )
9597 rootCmd .PersistentFlags ().Bool ("storage-staging-clickhouse-asyncInsert" , false , "Clickhouse async insert for staging storage" )
9698 rootCmd .PersistentFlags ().Int ("storage-staging-clickhouse-maxRowsPerInsert" , 100000 , "Clickhouse max rows per insert for staging storage" )
99+ rootCmd .PersistentFlags ().Bool ("storage-staging-clickhouse-disableTLS" , false , "Clickhouse disableTLS for staging storage" )
97100 rootCmd .PersistentFlags ().String ("api-host" , "localhost:3000" , "API host" )
101+ rootCmd .PersistentFlags ().String ("api-basicAuth-username" , "" , "API basic auth username" )
102+ rootCmd .PersistentFlags ().String ("api-basicAuth-password" , "" , "API basic auth password" )
98103 viper .BindPFlag ("rpc.url" , rootCmd .PersistentFlags ().Lookup ("rpc-url" ))
99104 viper .BindPFlag ("rpc.blocks.blocksPerRequest" , rootCmd .PersistentFlags ().Lookup ("rpc-blocks-blocksPerRequest" ))
100105 viper .BindPFlag ("rpc.blocks.batchDelay" , rootCmd .PersistentFlags ().Lookup ("rpc-blocks-batchDelay" ))
@@ -134,26 +139,31 @@ func init() {
134139 viper .BindPFlag ("storage.staging.clickhouse.password" , rootCmd .PersistentFlags ().Lookup ("storage-staging-clickhouse-password" ))
135140 viper .BindPFlag ("storage.staging.clickhouse.asyncInsert" , rootCmd .PersistentFlags ().Lookup ("storage-staging-clickhouse-asyncInsert" ))
136141 viper .BindPFlag ("storage.staging.clickhouse.maxRowsPerInsert" , rootCmd .PersistentFlags ().Lookup ("storage-staging-clickhouse-maxRowsPerInsert" ))
142+ viper .BindPFlag ("storage.staging.clickhouse.disableTLS" , rootCmd .PersistentFlags ().Lookup ("storage-staging-clickhouse-disableTLS" ))
137143 viper .BindPFlag ("storage.main.clickhouse.database" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-database" ))
138144 viper .BindPFlag ("storage.main.clickhouse.host" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-host" ))
139145 viper .BindPFlag ("storage.main.clickhouse.port" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-port" ))
140146 viper .BindPFlag ("storage.main.clickhouse.username" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-username" ))
141147 viper .BindPFlag ("storage.main.clickhouse.password" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-password" ))
142148 viper .BindPFlag ("storage.main.clickhouse.asyncInsert" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-asyncInsert" ))
143149 viper .BindPFlag ("storage.main.clickhouse.maxRowsPerInsert" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-maxRowsPerInsert" ))
150+ viper .BindPFlag ("storage.main.clickhouse.disableTLS" , rootCmd .PersistentFlags ().Lookup ("storage-main-clickhouse-disableTLS" ))
144151 viper .BindPFlag ("storage.orchestrator.clickhouse.database" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-database" ))
145152 viper .BindPFlag ("storage.orchestrator.clickhouse.host" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-host" ))
146153 viper .BindPFlag ("storage.orchestrator.clickhouse.port" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-port" ))
147154 viper .BindPFlag ("storage.orchestrator.clickhouse.username" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-username" ))
148155 viper .BindPFlag ("storage.orchestrator.clickhouse.password" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-password" ))
149156 viper .BindPFlag ("storage.orchestrator.clickhouse.asyncInsert" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-asyncInsert" ))
150157 viper .BindPFlag ("storage.orchestrator.clickhouse.maxRowsPerInsert" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-maxRowsPerInsert" ))
158+ viper .BindPFlag ("storage.orchestrator.clickhouse.disableTLS" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-clickhouse-disableTLS" ))
151159 viper .BindPFlag ("storage.orchestrator.memory.maxItems" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-memory-maxItems" ))
152160 viper .BindPFlag ("storage.orchestrator.redis.poolSize" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-redis-poolSize" ))
153161 viper .BindPFlag ("storage.orchestrator.redis.addr" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-redis-addr" ))
154162 viper .BindPFlag ("storage.orchestrator.redis.password" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-redis-password" ))
155163 viper .BindPFlag ("storage.orchestrator.redis.db" , rootCmd .PersistentFlags ().Lookup ("storage-orchestrator-redis-db" ))
156164 viper .BindPFlag ("api.host" , rootCmd .PersistentFlags ().Lookup ("api-host" ))
165+ viper .BindPFlag ("api.basicAuth.username" , rootCmd .PersistentFlags ().Lookup ("api-basicAuth-username" ))
166+ viper .BindPFlag ("api.basicAuth.password" , rootCmd .PersistentFlags ().Lookup ("api-basicAuth-password" ))
157167 rootCmd .AddCommand (orchestratorCmd )
158168 rootCmd .AddCommand (apiCmd )
159169}
0 commit comments