From c2c8125b5fb132170b63e879794251006b26d3e4 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Fri, 24 May 2024 03:52:57 +0800 Subject: [PATCH] by --- api/consts/consts.go | 4 + app/mix/cmd_offline/main.go | 17 ++-- app/mix/conf/cfg.go | 38 ++++---- etc/mix/mix-prod-offline.yaml | 158 ++++++++++++++++++++++++++++++++++ etc/mix/mix-prod.yaml | 15 +--- etc/mix/mix-test-offline.yaml | 158 ++++++++++++++++++++++++++++++++++ etc/mix/mix-test.yaml | 14 +-- 7 files changed, 348 insertions(+), 56 deletions(-) create mode 100644 etc/mix/mix-prod-offline.yaml create mode 100644 etc/mix/mix-test-offline.yaml diff --git a/api/consts/consts.go b/api/consts/consts.go index 07c99723..89e65646 100644 --- a/api/consts/consts.go +++ b/api/consts/consts.go @@ -89,8 +89,12 @@ const PackageRootPath = "/app/wishpal-ironfan" const MainConfigPath = PackageRootPath + "/etc/mix/mix-test.yaml" +const MainOfflineConfigPath = PackageRootPath + "/etc/mix/mix-test-offline.yaml" + const ProductionConfigPath = PackageRootPath + "/etc/mix/mix-prod.yaml" +const ProductionOfflineConfigPath = PackageRootPath + "/etc/mix/mix-prod-offline.yaml" + const LocalConfigPath = "C:/Users/PC/Desktop/service/etc/mix/mix-local.yaml" const ReservedUserIdRegexesConfig = PackageRootPath + "/etc/mix/resource/reg_reserved_user_id_config.xml" diff --git a/app/mix/cmd_offline/main.go b/app/mix/cmd_offline/main.go index abe42d15..4d88c72b 100644 --- a/app/mix/cmd_offline/main.go +++ b/app/mix/cmd_offline/main.go @@ -20,6 +20,7 @@ import ( "service/library/httpengine" "service/library/httpserver" "service/library/logger" + "service/library/middleware" "service/library/redis" "service/library/sms" "service/library/validator" @@ -30,7 +31,7 @@ import ( func main() { // 加载配置 // 1.默认配置 - configPath := consts.ProductionConfigPath + configPath := consts.ProductionOfflineConfigPath //if os.Getenv("PROJECT_ENV") == "production" { // configPath = consts.ProductionConfigPath @@ -57,7 +58,7 @@ func main() { } // 初始化日志 - logger.InitLogger(*cfg.OfflineServerLog) + logger.InitLogger(cfg.Log) // 初始化短信服务 err = sms.Init(cfg.Dysmsapi) @@ -105,19 +106,17 @@ func main() { // 初始化媒体填充服务 mediafiller.Init(cfg.ServerInfo) - // 初始化http server go exec.Run() + // 初始化http server router := httpengine.NewRouter() + middleware.InitJwtAuthenticator(service.DefaultService.OpVerifyToken) validator.InitDefaultNotNullValidator() - controller.InitOffline(router) + controller.Init(router) srv := &http.Server{ - Addr: fmt.Sprintf("%s:%d", GetIp(), cfg.OfflineServerApp.Port), + Addr: fmt.Sprintf("%s:%d", GetIp(), cfg.App.Port), Handler: router, } - httpserver.StartHttpServer(srv, &configcenter.DefaultConfig{ - Log: *cfg.OfflineServerLog, - App: *cfg.OfflineServerApp, - }) + httpserver.StartHttpServer(srv, cfg.DefaultConfig) } func PrintAndExit(msg string) { diff --git a/app/mix/conf/cfg.go b/app/mix/conf/cfg.go index 0ae12540..0d6f77da 100644 --- a/app/mix/conf/cfg.go +++ b/app/mix/conf/cfg.go @@ -4,24 +4,22 @@ import "service/library/configcenter" type ConfigSt struct { *configcenter.DefaultConfig `yaml:",inline"` // default - MixMongo *configcenter.MongoConfig `json:"mix_mongo" yaml:"mix_mongo"` // mix mongo - MixMysql *configcenter.MysqlConfig `json:"mix_mysql" yaml:"mix_mysql"` // mix mysql - Crypto *configcenter.CryptoConfig `json:"crypto" yaml:"crypto"` // 账号相关加密 - Wxpay *configcenter.WxpayClientConfig `json:"wxpay" yaml:"wxpay"` // 微信支付 - WxpayTFZ *configcenter.WxpayClientConfig `json:"wxpay_tfz" yaml:"wxpay_tfz"` // 微信支付 - Alipay *configcenter.AlipayClientConfig `json:"alipay" yaml:"alipay"` // 支付宝 心意到了 - AlipayMYTS *configcenter.AlipayClientConfig `json:"alipay_myts" yaml:"alipay_myts"` // 支付宝 觅缘天使 - Apollo *configcenter.ApolloConfig `json:"apollo" yaml:"apollo"` // Apollo - Media *configcenter.MediaConfig `json:"media" yaml:"media"` // 媒体配置 - Dysmsapi *configcenter.DysmsapiConfig `json:"dysmsapi" yaml:"dysmsapi"` // 阿里云短信服务 - ImageAudit *configcenter.ImageAuditConfig `json:"imageaudit" yaml:"imageaudit"` // 图片内容审核服务 - RedisConfig *configcenter.RedisConfig `json:"redis" yaml:"redis"` // redis - ServerInfo *configcenter.ServerInfoConfig `json:"server_info" yaml:"server_info"` // 服务器信息 - TextAudit *configcenter.TextAuditConfig `json:"textaudit" yaml:"textaudit"` // 文字内容审核服务 - XxlJob *configcenter.XxlJobConfig `json:"xxl_job" yaml:"xxl_job"` // xxl-job作业系统 - DingTalkRobot *configcenter.DingTalkRobotConfig `json:"ding_talk_robot" yaml:"ding_talk_robot"` // 钉钉机器人 - VideoModeration *configcenter.VideoModerationConfig `json:"video_moderation" yaml:"video_moderation"` // 视频审核 - ElasticSearch *configcenter.ElasticSearchConfig `json:"elastic_search" yaml:"elastic_search"` // es - OfflineServerLog *configcenter.LoggerConfig `json:"offline_server_log" yaml:"offline_server_log"` // 离线任务log - OfflineServerApp *configcenter.AppConfig `json:"offline_server_app" yaml:"offline_server_app"` // 离线任务app + MixMongo *configcenter.MongoConfig `json:"mix_mongo" yaml:"mix_mongo"` // mix mongo + MixMysql *configcenter.MysqlConfig `json:"mix_mysql" yaml:"mix_mysql"` // mix mysql + Crypto *configcenter.CryptoConfig `json:"crypto" yaml:"crypto"` // 账号相关加密 + Wxpay *configcenter.WxpayClientConfig `json:"wxpay" yaml:"wxpay"` // 微信支付 + WxpayTFZ *configcenter.WxpayClientConfig `json:"wxpay_tfz" yaml:"wxpay_tfz"` // 微信支付 + Alipay *configcenter.AlipayClientConfig `json:"alipay" yaml:"alipay"` // 支付宝 心意到了 + AlipayMYTS *configcenter.AlipayClientConfig `json:"alipay_myts" yaml:"alipay_myts"` // 支付宝 觅缘天使 + Apollo *configcenter.ApolloConfig `json:"apollo" yaml:"apollo"` // Apollo + Media *configcenter.MediaConfig `json:"media" yaml:"media"` // 媒体配置 + Dysmsapi *configcenter.DysmsapiConfig `json:"dysmsapi" yaml:"dysmsapi"` // 阿里云短信服务 + ImageAudit *configcenter.ImageAuditConfig `json:"imageaudit" yaml:"imageaudit"` // 图片内容审核服务 + RedisConfig *configcenter.RedisConfig `json:"redis" yaml:"redis"` // redis + ServerInfo *configcenter.ServerInfoConfig `json:"server_info" yaml:"server_info"` // 服务器信息 + TextAudit *configcenter.TextAuditConfig `json:"textaudit" yaml:"textaudit"` // 文字内容审核服务 + XxlJob *configcenter.XxlJobConfig `json:"xxl_job" yaml:"xxl_job"` // xxl-job作业系统 + DingTalkRobot *configcenter.DingTalkRobotConfig `json:"ding_talk_robot" yaml:"ding_talk_robot"` // 钉钉机器人 + VideoModeration *configcenter.VideoModerationConfig `json:"video_moderation" yaml:"video_moderation"` // 视频审核 + ElasticSearch *configcenter.ElasticSearchConfig `json:"elastic_search" yaml:"elastic_search"` // es } diff --git a/etc/mix/mix-prod-offline.yaml b/etc/mix/mix-prod-offline.yaml new file mode 100644 index 00000000..2b0310d6 --- /dev/null +++ b/etc/mix/mix-prod-offline.yaml @@ -0,0 +1,158 @@ +log: + stdout_enable: true + stdout_level: "info" + file_enable: true + file_level: "info" + file_abs_path: "/app/ironfan/log/offline-server/" + +app: + app_name: "offline-server" + ip: "127.0.0.1" + #ip: "172.26.47.174" + port: 9998 + +mix_mongo: + uri: "mongodb://root:Wishpal2024@dds-bp1da1ddd62bede41.mongodb.rds.aliyuncs.com:3717,dds-bp1da1ddd62bede42.mongodb.rds.aliyuncs.com:3717/admin?replicaSet=mgset-77304659" + username: "" + password: "" + max_pool_size: 16 + connection_timeout_ms: 30000 + socket_timeout_ms: 5000 + +mix_mysql: + uri: "rm-bp11t1616a1kjvmx5.mysql.rds.aliyuncs.com:3306" + username: "root" + password: "Wishpal2024" + timeout: 3 + read_timeout_s: 5 + write_timeout_s: 3 + +crypto: + aes: + private_key: "Xbz1145141919810" + rsa: + private_key: "MIIBOgIBAAJBAMXPIjKV6CMi5O9tIXJWNIfnqXjqOZ1KmRByRAP073DU+gzMLygzEsrztJzbz/K/Julkz6XhheZ8vdz+boAl1HsCAwEAAQJAD5PNRKCLhGDWGIjGjoN9ZYp3zR7c5KcgQKxO8OTUClWHxXWAHSO8WEMDUjYTB9xhTbzyyjfOV7GJf2YFRgQUYQIhANEFkyp7xKLIq284zmvJ+YAqMMqc5Wxkz/0Kv77PERfxAiEA8kRrSX2QcObiQkE2Jxn4VlW8M+bHZMdfabjSkYgKvysCIHGYhweCpjYVut3CUKTR6q/VvhiPNjw3ebW6vsSTQmXxAiBBe4DMQmYyPhXV9q5eb0SSgWX3WV93u/PsLYqsz2qoNQIhAKiqbRvYMzfg+OTBKuuGu3m+QLav4TjYVSSPD8VVf7/z" + token: + private_key: "" + sha256: + salts: "23XSka ZsMTz3 xdnKtT mx229Z aJ3VS7 ett3nV YDEgFB lBm57J 92hgkJ B0u9VF keyNK3 cB16Tm 63r1mX IUs471 ytbW7o ic8Pxw" + +alipay: + appid: "2021004115647165" + private_key: "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCtj6Nu2olEB8c8SDSANExaPbmk8LoYPEGB/APZDskhezO/w4OwPmG1Ak79XDpUUIihdmTZ8i2nBLhhRpFZGU4MMdil4X7a5nYHBm5dkGo3isIInn/qV7AYDqek4pGpMUPI6fbR05NWnUTZ+3AvMjTNBa979MgLyqS3jzpvuK6yXM5RinKVv8IF9KgthRKjH4LHyyRXBGu2cJSA5utjzFCL9KIu/T4XXZ09HOgz+JKPxXDj25Ob5eTtcBDsoJfXChcOvwCA7nxb1jzvGDrkqF36H1CC8KT1aoLRLisBsM+7sjEfNcB4RG5pGHSDGQJwZ0stGAhXf/fuWiLmI/zMOXODAgMBAAECggEAEL7CAuj8w16Iv20r+46QK0i3R42eNsZhf5wD9wYxK5TKal7/rppmLOObIWCrlATtGb7lfg2aj/mpnGEFlvYVDKImh+KYrZ/8lTLupQJQ7SjrDY/VQZPSPo/zZrohWZSSOKky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_url: "https://api.tiefen.fun/ext/vas/alipay_callback" + app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/appCertPublicKey_2021004115647165.crt" + alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/alipayRootCert.crt" + alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/alipayCertPublicKey_RSA2.crt" + +alipay_myts: + appid: "2021004135664261" + private_key: "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCT2MbUzyyMFUJ8EXGVotZmNMDhkw4Zv9diPgLEmnExoBGj41waqtumFMo2o63J4akBP//87r2ap+e7KKqt+WkRZZ8UB/Mj5SwQBzxqJakI+pO7YM6kM6kiAAKOLG7lloMDiQwlMxHUC52o+xJQj7RA0M/pUcVar5rr+BOnhLSH5RTrA5u5xzT5vPdmwqOxnY1OiDe7WB6VbPusLKDVbtvdT7icLnS200FYg4AQ27Sa5L8Ss9MwNcNCh4Z2eA/iriVgCvdtgNiz2RRgmAReSn4u2BBb6dZEDG6SAVsNARYs+avcYaVHpflqDfDRqPgdJ+4mQSCetQ2HDPA8GDbkn05HAgMBAAECggEAHUeaIP0ikl+HejCuMPc9xKH/7OyFp13R1vf27l6zuiM8OxvE2tcphtupLGb//PI+2SuGk93oGN/VycAFBU1WnIZmmb31Tg+NyWLVeSQaNNgDN+G1Ktm8Tip4VxW/pKJJMgMLL7bMehUO1S9b8i5zgT6ZXli+X/ZVFRRdOBjU8/CCDntTI44JmSLDnGAmR0dz3rP5/Sp2x8Yo/2O77bEBPHmT//7RVk+x1pn6olHwAsztmMddurZuLGoCP4hhZGwjuplrlyEXpe6IEpI2G0UNS97PJfL6JU56TKwMYrbo9ZV6ru5AfEeAKANPL/Urb6Gx9pcpEgktLga5B6z1glh/gQKBgQDRcZeJmpBjLO3mYlz7jqGmMtNPK06JiFr9m3NGsiE3fQmqKvEY9W0nfPX5DFYx5NFb/UWTpeuYe3NHMVo8Jwh4gNip3/AkUQylYLNxirFf6/2FltlPCsnlmeFclz9xDKzQncO60m40g2oEQ4eXUmVEOfLzpLzlsL3aXUP/K3sWBwKBgQC0tgHdFgTqE7rVn/xvZsgBas26P1tM707EYYoMGccf6zbhEMCs5e1n5nvPenX2H11TOzQDLsQz6bsZvnJ8FSoo1+pTYWi6Zr1nWDZMEQQcVGf2yLsUzFSrWHNyII/ZEeSW1UV25zlMjbv7y/VnuBlH1EJZDlv5ssSUyaAugYn1wQKBgQDQMoW70Ly1CYWXXbImkjtYVe++JEOW7cfdkDiATzQ7z3za/oLaF6Yg+dQddMj+IgKH2fXe9rGCyzzlyUZ0wyxldVdrTmOOBk922fCm7oKx4ooK0NBGBWh7Z4Mhomv7OelUG2/k96d7ZiLuCB7yKoLl1mEPF3R7Mz0Wo12jexqI4wKBgGdr3scr6eYZIo1OAYe0F/UPrevQhK0ULE0h0YK5Yge3cvH9x3dsI6GZ+/OzDz2rl5qhwFOt+SYIt0a1gwnWhwlXAMl1bx123SD/EBwahPK9r75CBSeTBUYG2hNP5WOC5QMZzaaOEHHqj9I8WRdh+j3skYgsOqE+GVlZxy22f0FBAoGAXFiGFH/X2hbwRGE5KChzQsuClC7GJ/JJgjIhHuUqUa/rHiQwWyx+uJI0c91KwsGssdpMVTnlFzeDHxdICId7YLhOgSNX92gdZDpJc6RvrU834xBszLtuukHWXpShbBDcsN/sSChI1jg6CPbjKuI2FoNm66s6puSHDXEPMTZTQYA=" + notify_url: "https://api.tiefen.fun/ext/vas/alipay_callback" + app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/appCertPublicKey_2021004135664261.crt" + alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayRootCert.crt" + alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayCertPublicKey_RSA2.crt" + +wxpay: + mchid: "1665016206" + appid: "wxc28fd8aaf31984b6" + serial_no: "51D8E75620B9569F10FF5363022F3C9D2152DF50" + apiv3_key: "UoaswgnuKYwIadqxCVag1IZlq5n9USvt" + private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert/apiclient_key.pem" + notify_url: "https://api.tiefen.fun/ext/vas/wxpay_callback" + app_secret: "ebc325109b91087e22f046bc8ac5c940" + +wxpay_tfz: + mchid: "1675813721" + appid: "wxc28fd8aaf31984b6" + serial_no: "176903F43E78B0BA5AA1F08A3BE852A5F637DC77" + apiv3_key: "5QwY1XMK1HW3JQwGKbA3mfJ5cdsTQGjR" + private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert_tfz/apiclient_key.pem" + notify_url: "https://api.tiefen.fun/ext/vas/wxpay_callback" + app_secret: "ebc325109b91087e22f046bc8ac5c940" + +apollo: + app_id: "wishpal_live_service" + cluster: "dev" + ip: "http://172.16.0.186:8080" + namespace_name: "application,tag,account_init,platform,support_wx_id,version" + secret: "" + is_back_up_config: true + sync_server_timeout: 2 + +dysmsapi: + access_key_id: "LTAI5tMZEAgdr7ZqHQfBF314" + access_key_secret: "Qd8Sf94841y22vUjAhXCpLTdo2r0ys" + sign_name: "铁粉空间" + template_code: "SMS_290196756" + +imageaudit: + access_key_id: "LTAI5tD2Mg5mPUDQLPZZriPJ" + access_key_secret: "IseIbk7fMbwy0eL33J2ro4Y55mWkn4" + #scenes: "porn terrorism ad live logo" + #scenes: "porn terrorism live logo" + scenes: "porn terrorism live" + task_buffer_size: 100 + task_packet_size: 100 + +textaudit: + #labels: "spam politics abuse terrorism porn flood contraband ad" + labels: "spam politics abuse terrorism porn flood contraband" + task_buffer_size: 100 + task_packet_size: 100 + +video_moderation: + access_key_id: "LTAI5tQBGFS9BNiTHdbAAM74" + access_key_secret: "vsV42N0ZCtJTQNwFLheCaV8oQn69hQ" + notify_url: "https://offlineserver.wishpal.cn/offline_ext/video_moderation/callback" + ali_acct_id: "1501583627133461" + seed: "23XSkaZsMTz3xdnKtTmx229ZaJ3VS7e" + +media: + access_key: "LTAI5tAdu5LRvZwm4LJa21Fo" + access_secret: "WGvSQsDralTfFAAxhEqLBOgbXqflHo" + endpoint: "oss-cn-hangzhou.aliyuncs.com" + bucket: "wishpal-ironfan-media" + expire_time: 1800 + +redis: + uri: "r-bp1slashewonusih6h.redis.rds.aliyuncs.com:6379" + password: "SWEbaxdt6aM@" + max_active: 0 + max_idle: 0 + idle_timeout: 0 + prefix: "" + +server_info: + file_server_domain_name: "https://file.tiefen.fun/" + +xxl_job: + server_addr: "http://172.16.0.186:9800/xxl-job-admin" + access_token: "default_token" + executor_ip: "172.31.37.66" + executor_port: "9801" + registry_key: "golang-jobs-executor" + log_path: "/app/ironfan/log/xxl_job/" + +ding_talk_robot: + access_token: "65f11ade605568c34f33ff79ed4c20c1721bd6da18511d8e08a6ed9666c4b8b4" + secret: "SECcc49257b2681b6488ab4be8ee815c61027a7254e2be3239c229de38b22207b5b" + +elastic_search: + uri: "http://172.31.37.67:9200" + username: "elastic" + password: "Wishpal@2024" + sniff: false + +offline_server: + log: + stdout_enable: true + stdout_level: "trace" + file_enable: true + file_level: "trace" + file_abs_path: "/app/ironfan/log/offline-server/" + + app: + app_name: "offline-server" + ip: "127.0.0.1" + port: 9998 \ No newline at end of file diff --git a/etc/mix/mix-prod.yaml b/etc/mix/mix-prod.yaml index 663c9eed..c78418a1 100644 --- a/etc/mix/mix-prod.yaml +++ b/etc/mix/mix-prod.yaml @@ -142,17 +142,4 @@ elastic_search: uri: "http://172.31.37.67:9200" username: "elastic" password: "Wishpal@2024" - sniff: false - -offline_server: - log: - stdout_enable: true - stdout_level: "trace" - file_enable: true - file_level: "trace" - file_abs_path: "/app/ironfan/log/offline-server/" - - app: - app_name: "offline-server" - ip: "127.0.0.1" - port: 9998 \ No newline at end of file + sniff: false \ No newline at end of file diff --git a/etc/mix/mix-test-offline.yaml b/etc/mix/mix-test-offline.yaml new file mode 100644 index 00000000..33732186 --- /dev/null +++ b/etc/mix/mix-test-offline.yaml @@ -0,0 +1,158 @@ +log: + stdout_enable: true + stdout_level: "trace" + file_enable: true + file_level: "trace" + file_abs_path: "/app/ironfan/log/offline-server/" + +app: + app_name: "offline-server" + ip: "127.0.0.1" + #ip: "172.26.47.174" + port: 9998 + +mix_mongo: + uri: "mongodb://admin:Wishpal%402023@127.0.0.1:27017" + username: "" + password: "" + max_pool_size: 16 + connection_timeout_ms: 30000 + socket_timeout_ms: 5000 + +mix_mysql: + uri: "127.0.0.1:3306" + username: "root" + password: "Wishpal@2023" + timeout: 3 + read_timeout_s: 5 + write_timeout_s: 3 + +wxpay: + mchid: "1665016206" + appid: "wxc28fd8aaf31984b6" + serial_no: "51D8E75620B9569F10FF5363022F3C9D2152DF50" + apiv3_key: "UoaswgnuKYwIadqxCVag1IZlq5n9USvt" + private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert/apiclient_key.pem" + notify_url: "https://api.wishpal.cn/ext/vas/wxpay_callback" + app_secret: "ebc325109b91087e22f046bc8ac5c940" + +wxpay_tfz: + mchid: "1675813721" + appid: "wxc28fd8aaf31984b6" + serial_no: "176903F43E78B0BA5AA1F08A3BE852A5F637DC77" + apiv3_key: "5QwY1XMK1HW3JQwGKbA3mfJ5cdsTQGjR" + private_key_path: "/app/wishpal-ironfan/etc/mix/wxpaycert_tfz/apiclient_key.pem" + notify_url: "https://api.wishpal.cn/ext/vas/wxpay_callback" + app_secret: "ebc325109b91087e22f046bc8ac5c940" + apiv2_key: "mot5410nh69k87e22f046bc8anv5xds8" + +crypto: + aes: + private_key: "Xbz1145141919810" + rsa: + private_key: "MIIBOgIBAAJBAMXPIjKV6CMi5O9tIXJWNIfnqXjqOZ1KmRByRAP073DU+gzMLygzEsrztJzbz/K/Julkz6XhheZ8vdz+boAl1HsCAwEAAQJAD5PNRKCLhGDWGIjGjoN9ZYp3zR7c5KcgQKxO8OTUClWHxXWAHSO8WEMDUjYTB9xhTbzyyjfOV7GJf2YFRgQUYQIhANEFkyp7xKLIq284zmvJ+YAqMMqc5Wxkz/0Kv77PERfxAiEA8kRrSX2QcObiQkE2Jxn4VlW8M+bHZMdfabjSkYgKvysCIHGYhweCpjYVut3CUKTR6q/VvhiPNjw3ebW6vsSTQmXxAiBBe4DMQmYyPhXV9q5eb0SSgWX3WV93u/PsLYqsz2qoNQIhAKiqbRvYMzfg+OTBKuuGu3m+QLav4TjYVSSPD8VVf7/z" + token: + private_key: "" + sha256: + salts: "23XSka ZsMTz3 xdnKtT mx229Z aJ3VS7 ett3nV YDEgFB lBm57J 92hgkJ B0u9VF keyNK3 cB16Tm 63r1mX IUs471 ytbW7o ic8Pxw" + +alipay: + appid: "2021004115647165" + private_key: "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCtj6Nu2olEB8c8SDSANExaPbmk8LoYPEGB/APZDskhezO/w4OwPmG1Ak79XDpUUIihdmTZ8i2nBLhhRpFZGU4MMdil4X7a5nYHBm5dkGo3isIInn/qV7AYDqek4pGpMUPI6fbR05NWnUTZ+3AvMjTNBa979MgLyqS3jzpvuK6yXM5RinKVv8IF9KgthRKjH4LHyyRXBGu2cJSA5utjzFCL9KIu/T4XXZ09HOgz+JKPxXDj25Ob5eTtcBDsoJfXChcOvwCA7nxb1jzvGDrkqF36H1CC8KT1aoLRLisBsM+7sjEfNcB4RG5pGHSDGQJwZ0stGAhXf/fuWiLmI/zMOXODAgMBAAECggEAEL7CAuj8w16Iv20r+46QK0i3R42eNsZhf5wD9wYxK5TKal7/rppmLOObIWCrlATtGb7lfg2aj/mpnGEFlvYVDKImh+KYrZ/8lTLupQJQ7SjrDY/VQZPSPo/zZrohWZSSOKkyEg56samcwfc7XKJYa8t3odr9Df4wJDGibrL/z99xrJrz85le+NHBISXUyddS5ojuDNfGwE39wgLu52P74QYxv6s0xZKj2aALXaLXyTzF4ys34nVhhv75gXFtENiUet5/PVRYe7OE4cndcOP9WI3nXP5ojak8N4fY15S0YOm/0NZP8w6nWUemFjUNRXYRY42J+W+/myW8RIppaGuwkQKBgQDYH263Lh8C9EkjGA2po68LUTBhM2fT2L3batzHjXo0jvLT0IR88/9V7xhC3ZQZNcxQCK0xaCYfzFx3UV9veC1zeVRW0i/hyJ8B40w3WXCoGDiHgzQ/kcu/Iaw2qmJyhEFzOwAfrxIgco9EiZBaY7fXyy7YkZLGqXNFcLsuWR5qWwKBgQDNlc19CESIukT31Ap2QBe6t9YNXHZuKTePBRaIUCan3vZwPfZePLJQCgtoVhnCGoHZJ+ZlNhYri9x6DNLZpxCSHZNjccmqFGj3N7xWBqU38gu2dcPdMAxT1ERwf2gdlhgWAhVzD56hsWyrbP9YZACXy7TlevSj7s/5GaNaVuHT+QKBgQC2VZZ3zt51BJnrlLB6LVFRz/ZsGw1+qj5LLpYDeXXff7aYQzRzovsJigVC7GO0/TFZWGid5Us8ypI8TBejGJXn9TXVZdDlwPd9hUFY9QlZl82hbm0XMK7fms4K9KbIDJKXX/CTyoUVgPEkFpcF21lQIuhr6C0XlABfVmNlD+TcPwKBgHJuot2ov3UXsZH8/gHKNSsibswrHmS9HobGPz+K1al1Stk5NCxKPrqcjLL70gSf+ozkT7MggwCkLgnln2u1OV0Lh2HAEY9RIwgQhw2fT1GvseNS873no8T5j0rLMCnfxPJjIItWM2cvOhzFY/BQYaAcrElbwlaJdEvkgG+lkrgJAoGBAInYRdHo9V1exDUS0ucQuraoEtuvgOrqatnCbuNZ9EpgjFJxDbHXOIJYPvgfpyws4amdksNQL0Ux9+p+esJOS+JYYkE1nmCTCrfb6SNKr+PdeUteKtTiHJb4zJhGVC2Lk4uBg9AGa/d7j5apWw4RsZ/R1ky1S6KQUkqItbVrhC8l" + notify_url: "https://api.wishpal.cn/ext/vas/alipay_callback" + app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/appCertPublicKey_2021004115647165.crt" + alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/alipayRootCert.crt" + alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert/alipayCertPublicKey_RSA2.crt" + +alipay_myts: + appid: "2021004135664261" + private_key: "MIIEvQIBADANBgkqhkiG9w0B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gQDQMoW70Ly1CYWXXbImkjtYVe++JEOW7cfdkDiATzQ7z3za/oLaF6Yg+dQddMj+IgKH2fXe9rGCyzzlyUZ0wyxldVdrTmOOBk922fCm7oKx4ooK0NBGBWh7Z4Mhomv7OelUG2/k96d7ZiLuCB7yKoLl1mEPF3R7Mz0Wo12jexqI4wKBgGdr3scr6eYZIo1OAYe0F/UPrevQhK0ULE0h0YK5Yge3cvH9x3dsI6GZ+/OzDz2rl5qhwFOt+SYIt0a1gwnWhwlXAMl1bx123SD/EBwahPK9r75CBSeTBUYG2hNP5WOC5QMZzaaOEHHqj9I8WRdh+j3skYgsOqE+GVlZxy22f0FBAoGAXFiGFH/X2hbwRGE5KChzQsuClC7GJ/JJgjIhHuUqUa/rHiQwWyx+uJI0c91KwsGssdpMVTnlFzeDHxdICId7YLhOgSNX92gdZDpJc6RvrU834xBszLtuukHWXpShbBDcsN/sSChI1jg6CPbjKuI2FoNm66s6puSHDXEPMTZTQYA=" + notify_url: "https://api.wishpal.cn/ext/vas/alipay_callback" + app_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/appCertPublicKey_2021004135664261.crt" + alipay_root_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayRootCert.crt" + alipay_public_cert_path: "/app/wishpal-ironfan/etc/mix/alipaycert_myts/alipayCertPublicKey_RSA2.crt" + +apollo: + app_id: "wishpal_live_service" + cluster: "dev" + ip: "http://localhost:8080" + namespace_name: "application,tag,account_init,platform,support_wx_id,version" + secret: "" + is_back_up_config: true + sync_server_timeout: 2 + +dysmsapi: + access_key_id: "LTAI5tMZEAgdr7ZqHQfBF314" + access_key_secret: "Qd8Sf94841y22vUjAhXCpLTdo2r0ys" + sign_name: "铁粉空间" + template_code: "SMS_290196756" + +imageaudit: + access_key_id: "LTAI5tD2Mg5mPUDQLPZZriPJ" + access_key_secret: "IseIbk7fMbwy0eL33J2ro4Y55mWkn4" + #scenes: "porn terrorism ad live logo" + #scenes: "porn terrorism live logo" + scenes: "porn terrorism live" + task_buffer_size: 100 + task_packet_size: 100 + +textaudit: + #labels: "spam politics abuse terrorism porn flood contraband ad" + labels: "spam politics abuse terrorism porn flood contraband" + task_buffer_size: 100 + task_packet_size: 100 + +video_moderation: + access_key_id: "LTAI5tQBGFS9BNiTHdbAAM74" + access_key_secret: "vsV42N0ZCtJTQNwFLheCaV8oQn69hQ" + notify_url: "https://api.wishpal.cn/offline_ext/video_moderation/callback" + ali_acct_id: "1501583627133461" + seed: "23XSkaZsMTz3xdnKtTmx229ZaJ3VS7e" + +media: + access_key: "LTAI5tExCWnxUX57G5Vr5Exk" + access_secret: "Jwghv6KiTWbticKuo3zEtZfuYGmMPX" + endpoint: "oss-cn-hangzhou.aliyuncs.com" + bucket: "wishpal-file" + expire_time: 1800 + +redis: + uri: "127.0.0.1:6379" + password: "" + max_active: 0 + max_idle: 0 + idle_timeout: 0 + prefix: "" + +server_info: + file_server_domain_name: "https://file.wishpaldev.tech/" + +xxl_job: + server_addr: "http://127.0.0.1:9800/xxl-job-admin" + access_token: "default_token" + executor_ip: "127.0.0.1" + executor_port: "9801" + registry_key: "golang-jobs-executor" + log_path: "/app/ironfan/log/xxl_job/" + +ding_talk_robot: + access_token: "65f11ade605568c34f33ff79ed4c20c1721bd6da18511d8e08a6ed9666c4b8b4" + secret: "SECcc49257b2681b6488ab4be8ee815c61027a7254e2be3239c229de38b22207b5b" + +elastic_search: + uri: "http://127.0.0.1:9200" + username: "elastic" + password: "Wishpal@2024" + sniff: false + +offline_server_log: + stdout_enable: true + stdout_level: "trace" + file_enable: true + file_level: "trace" + file_abs_path: "/app/ironfan/log/offline-server/" + +offline_server_app: + app_name: "offline-server" + ip: "127.0.0.1" + port: 9998 \ No newline at end of file diff --git a/etc/mix/mix-test.yaml b/etc/mix/mix-test.yaml index 1f2527d9..baf3238b 100644 --- a/etc/mix/mix-test.yaml +++ b/etc/mix/mix-test.yaml @@ -143,16 +143,4 @@ elastic_search: uri: "http://127.0.0.1:9200" username: "elastic" password: "Wishpal@2024" - sniff: false - -offline_server_log: - stdout_enable: true - stdout_level: "trace" - file_enable: true - file_level: "trace" - file_abs_path: "/app/ironfan/log/offline-server/" - -offline_server_app: - app_name: "offline-server" - ip: "127.0.0.1" - port: 9998 \ No newline at end of file + sniff: false \ No newline at end of file