fix: rebuild instagram parser integration
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
INSERT INTO app_settings (key, label, value_type, value)
|
||||
INSERT INTO worker_controls(name, enabled, settings_json)
|
||||
VALUES ('insta-parser', FALSE, '{}'::jsonb)
|
||||
ON CONFLICT (name) DO NOTHING;
|
||||
|
||||
INSERT INTO app_settings(key, value_json, value_type, title, description, category)
|
||||
VALUES
|
||||
('insta_login', 'Instagram Login', 'string', ''),
|
||||
('insta_password', 'Instagram Password', 'secret', ''),
|
||||
('insta_proxy_url', 'Instagram Proxy URL (http://user:pass@ip:port)', 'string', ''),
|
||||
('insta_fetch_count', 'Instagram: количество проверяемых последних постов', 'int', '5'),
|
||||
('insta_delay_base_minutes', 'Instagram: пауза между аккаунтами (минут)', 'int', '35'),
|
||||
('insta_delay_random_minutes', 'Instagram: разброс паузы (± минут)', 'int', '5'),
|
||||
('insta_cooldown_hours', 'Instagram: отлежка при лимитах (часов)', 'int', '12')
|
||||
('insta_login', '""'::jsonb, 'str', 'Instagram login', 'Username for the Instagram account used by instagrapi.', 'Instagram Parser'),
|
||||
('insta_password', '""'::jsonb, 'secret', 'Instagram password', 'Password for the Instagram account used by instagrapi.', 'Instagram Parser'),
|
||||
('insta_proxy_url', '""'::jsonb, 'str', 'Instagram proxy URL', 'Optional stable proxy, for example http://user:pass@host:port.', 'Instagram Parser'),
|
||||
('insta_session_path', '"insta_session.json"'::jsonb, 'str', 'Instagram session path', 'Path to the persisted instagrapi session settings file.', 'Instagram Parser'),
|
||||
('insta_fetch_count', '5'::jsonb, 'int', 'Posts to inspect', 'How many latest posts to inspect per account visit.', 'Instagram Parser'),
|
||||
('insta_delay_base_minutes', '35'::jsonb, 'int', 'Account visit delay, minutes', 'Base pause after checking one Instagram account.', 'Instagram Parser'),
|
||||
('insta_delay_random_minutes', '5'::jsonb, 'int', 'Delay random spread, minutes', 'Random +/- spread added to the base account visit delay.', 'Instagram Parser'),
|
||||
('insta_cooldown_hours', '12'::jsonb, 'int', 'Cooldown hours', 'Sleep window after challenge, login-required or rate-limit responses.', 'Instagram Parser'),
|
||||
('insta_request_pause_sec', '2'::jsonb, 'float', 'Request pause, sec', 'Small pause between Instagram user lookup and media fetch.', 'Instagram Parser'),
|
||||
('insta_dedupe_content_hash', 'true'::jsonb, 'bool', 'Dedupe by content hash', 'Skip Instagram posts whose text and media hash already exists.', 'Instagram Parser')
|
||||
ON CONFLICT (key) DO NOTHING;
|
||||
|
||||
Reference in New Issue
Block a user