迁移后端到stdb
This commit is contained in:
50
scripts/spacetime/init_local_app_config.sql
Normal file
50
scripts/spacetime/init_local_app_config.sql
Normal file
@@ -0,0 +1,50 @@
|
||||
UPDATE app_config
|
||||
SET guest_login_enabled = TRUE,
|
||||
sms_auth_enabled = TRUE,
|
||||
sms_verification_required = TRUE,
|
||||
sms_provider = 'mock',
|
||||
sms_endpoint = 'dypnsapi.aliyuncs.com',
|
||||
sms_access_key_id = '',
|
||||
sms_access_key_secret = '',
|
||||
sms_sign_name = '',
|
||||
sms_template_code = '',
|
||||
sms_template_param_key = 'code',
|
||||
sms_country_code = '86',
|
||||
sms_scheme_name = '',
|
||||
sms_code_length = 6,
|
||||
sms_code_type = 1,
|
||||
sms_valid_time_seconds = 300,
|
||||
sms_interval_seconds = 60,
|
||||
sms_duplicate_policy = 1,
|
||||
sms_case_auth_policy = 1,
|
||||
sms_return_verify_code = FALSE,
|
||||
sms_mock_verify_code = '123456',
|
||||
sms_max_send_per_phone_per_day = 20,
|
||||
sms_max_send_per_ip_per_hour = 30,
|
||||
sms_max_verify_failures_per_phone_per_hour = 12,
|
||||
sms_max_verify_failures_per_ip_per_hour = 24,
|
||||
sms_captcha_ttl_seconds = 180,
|
||||
sms_captcha_trigger_verify_failures_per_phone = 3,
|
||||
sms_captcha_trigger_verify_failures_per_ip = 5,
|
||||
sms_block_phone_failure_threshold = 6,
|
||||
sms_block_ip_failure_threshold = 10,
|
||||
sms_block_phone_duration_minutes = 30,
|
||||
sms_block_ip_duration_minutes = 30,
|
||||
default_music_volume = 0.42,
|
||||
default_guest_display_name_prefix = '游客',
|
||||
kick_message_unverified = '账号尚未完成短信验证,请先完成验证',
|
||||
wechat_enabled = FALSE,
|
||||
wechat_provider = 'mock',
|
||||
wechat_app_id = '',
|
||||
wechat_app_secret = '',
|
||||
wechat_authorize_endpoint = 'https://open.weixin.qq.com/connect/qrconnect',
|
||||
wechat_access_token_endpoint = 'https://api.weixin.qq.com/sns/oauth2/access_token',
|
||||
wechat_user_info_endpoint = 'https://api.weixin.qq.com/sns/userinfo',
|
||||
wechat_callback_path = '/api/auth/wechat/callback',
|
||||
wechat_default_redirect_path = '/',
|
||||
wechat_mock_user_id = 'mock_wechat_user',
|
||||
wechat_mock_union_id = 'mock_wechat_union',
|
||||
wechat_mock_display_name = '微信旅人',
|
||||
wechat_mock_avatar_url = '',
|
||||
updated_at_ms = 1744934400000
|
||||
WHERE id = 1;
|
||||
Reference in New Issue
Block a user