-- ============================================
-- S3 PUBLIC ENDPOINT SETTING
-- Separate URL for browser-accessible S3 files
-- ============================================

-- Add S3 public endpoint setting for browser access
-- The regular s3_endpoint is for server-to-S3 communication (internal Docker)
-- The s3_public_endpoint is for browser access to files (external URL)
INSERT INTO public.app_settings (category, setting_key, setting_value, setting_type, display_name, description, is_public) VALUES
  ('storage', 's3_public_endpoint', '""', 'text', 'Public Endpoint URL', 'Browser-accessible S3 URL (e.g., http://localhost:9000). Leave empty to use the same as S3 Endpoint.', false)
ON CONFLICT (category, setting_key) DO NOTHING;
