Implemented Settings
Improved cronjob Fixed Views Added env encryption key for encrypting sensitive data in database.
This commit is contained in:
@@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS domains (
|
||||
registrar VARCHAR(255),
|
||||
expiration_date DATE,
|
||||
last_checked TIMESTAMP NULL,
|
||||
status ENUM('active', 'expiring_soon', 'expired', 'error') DEFAULT 'active',
|
||||
status ENUM('active', 'expiring_soon', 'expired', 'error', 'available') DEFAULT 'active',
|
||||
whois_data JSON,
|
||||
is_active BOOLEAN DEFAULT TRUE,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
17
database/migrations/007_add_app_and_email_settings.sql
Normal file
17
database/migrations/007_add_app_and_email_settings.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- Add application and email settings to database
|
||||
INSERT INTO settings (setting_key, setting_value) VALUES
|
||||
-- Application Settings
|
||||
('app_name', 'Domain Monitor'),
|
||||
('app_url', 'http://localhost:8000'),
|
||||
('app_timezone', 'UTC'),
|
||||
|
||||
-- Email Settings
|
||||
('mail_host', 'smtp.mailtrap.io'),
|
||||
('mail_port', '2525'),
|
||||
('mail_username', ''),
|
||||
('mail_password', ''),
|
||||
('mail_encryption', 'tls'),
|
||||
('mail_from_address', 'noreply@domainmonitor.com'),
|
||||
('mail_from_name', 'Domain Monitor')
|
||||
ON DUPLICATE KEY UPDATE setting_key=setting_key;
|
||||
|
||||
Reference in New Issue
Block a user