Commit b56b4505 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

debug

parent b9c63b91
...@@ -62,6 +62,7 @@ func LoadConfig() *Config { ...@@ -62,6 +62,7 @@ func LoadConfig() *Config {
log.Err(err).Msg("Failed to parse config file") log.Err(err).Msg("Failed to parse config file")
return nil return nil
} }
log.Info().Msgf("config password: %s", config.DBConfig.Password)
password := os.Getenv("RDB_PASSWORD") password := os.Getenv("RDB_PASSWORD")
log.Info().Msgf("RDB_PASSWORD: %s", password) log.Info().Msgf("RDB_PASSWORD: %s", password)
if password != "" { if password != "" {
......
...@@ -45,6 +45,7 @@ CREATE TABLE waf_rule_categories ( ...@@ -45,6 +45,7 @@ CREATE TABLE waf_rule_categories (
-- hosts TEXT -- hosts TEXT
-- ); -- );
-- Create waf_listener_histories table
CREATE TABLE `waf_listener_histories` ( CREATE TABLE `waf_listener_histories` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT, `id` bigint unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
...@@ -60,7 +61,7 @@ CREATE TABLE `waf_listener_histories` ( ...@@ -60,7 +61,7 @@ CREATE TABLE `waf_listener_histories` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Create waf_blackwhitelists table
CREATE TABLE IF NOT EXISTS waf_blackwhitelists CREATE TABLE IF NOT EXISTS waf_blackwhitelists
( (
id bigint NOT NULL PRIMARY KEY AUTO_INCREMENT, id bigint NOT NULL PRIMARY KEY AUTO_INCREMENT,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment