updated config file to include email

This commit is contained in:
2023-10-18 15:43:45 -05:00
parent 45b91eb8d9
commit bc3c8c0f94

View File

@@ -1,141 +1,150 @@
{ {
"base_app_url": "http://192.168.1.44:3012", "base_app_url": "http://192.168.1.44:3012",
"email_from": "admin@cronicleserver", "email_from": "notify.akanealw@gmail.com",
"smtp_hostname": "cronicleserver", "smtp_hostname": "smtp.gmail.com",
"smtp_port": 25, "smtp_port": 587,
"secret_key": "cahre6Eosi3eighoh5bohghoom7ahG", "mail_options": {
"secure": false,
"auth": { "user": "notify.akanealw@gmail.com", "pass": "leawkqqpthbwacrf" },
"tls": {
"rejectUnauthorized":false,
"requireTLS":true
}
},
"log_dir": "logs", "secret_key": "cahre6Eosi3eighoh5bohghoom7ahG",
"log_filename": "[component].log",
"log_columns": ["hires_epoch", "date", "hostname", "pid", "component", "category", "code", "msg", "data"],
"log_archive_path": "logs/archives/[yyyy]/[mm]/[dd]/[filename]-[yyyy]-[mm]-[dd].log.gz",
"log_crashes": true,
"copy_job_logs_to": "",
"queue_dir": "queue",
"pid_file": "logs/cronicled.pid",
"debug_level": 9,
"maintenance": "04:00",
"list_row_max": 10000,
"job_data_expire_days": 180,
"child_kill_timeout": 10,
"dead_job_timeout": 120,
"master_ping_freq": 20,
"master_ping_timeout": 60,
"udp_broadcast_port": 3014,
"scheduler_startup_grace": 10,
"universal_web_hook": "",
"track_manual_jobs": false,
"max_jobs": 0,
"server_comm_use_hostnames": false, "log_dir": "logs",
"web_direct_connect": false, "log_filename": "[component].log",
"web_socket_use_hostnames": false, "log_columns": ["hires_epoch", "date", "hostname", "pid", "component", "category", "code", "msg", "data"],
"log_archive_path": "logs/archives/[yyyy]/[mm]/[dd]/[filename]-[yyyy]-[mm]-[dd].log.gz",
"log_crashes": true,
"copy_job_logs_to": "",
"queue_dir": "queue",
"pid_file": "logs/cronicled.pid",
"debug_level": 9,
"maintenance": "04:00",
"list_row_max": 10000,
"job_data_expire_days": 180,
"child_kill_timeout": 10,
"dead_job_timeout": 120,
"master_ping_freq": 20,
"master_ping_timeout": 60,
"udp_broadcast_port": 3014,
"scheduler_startup_grace": 10,
"universal_web_hook": "",
"track_manual_jobs": false,
"max_jobs": 0,
"job_memory_max": 1073741824, "server_comm_use_hostnames": false,
"job_memory_sustain": 0, "web_direct_connect": false,
"job_cpu_max": 0, "web_socket_use_hostnames": false,
"job_cpu_sustain": 0,
"job_log_max_size": 0,
"job_env": {},
"web_hook_text_templates": { "job_memory_max": 1073741824,
"job_start": "Job started on [hostname]: [event_title] [job_details_url]", "job_memory_sustain": 0,
"job_complete": "Job completed successfully on [hostname]: [event_title] [job_details_url]", "job_cpu_max": 0,
"job_failure": "Job failed on [hostname]: [event_title]: Error [code]: [description] [job_details_url]", "job_cpu_sustain": 0,
"job_launch_failure": "Failed to launch scheduled event: [event_title]: [description] [edit_event_url]" "job_log_max_size": 0,
}, "job_env": {},
"client": { "web_hook_text_templates": {
"name": "Cronicle", "job_start": "Job started on [hostname]: [event_title] [job_details_url]",
"debug": 1, "job_complete": "Job completed successfully on [hostname]: [event_title] [job_details_url]",
"default_password_type": "password", "job_failure": "Job failed on [hostname]: [event_title]: Error [code]: [description] [job_details_url]",
"privilege_list": [ "job_launch_failure": "Failed to launch scheduled event: [event_title]: [description] [edit_event_url]"
{ "id": "admin", "title": "Administrator" }, },
{ "id": "create_events", "title": "Create Events" },
{ "id": "edit_events", "title": "Edit Events" },
{ "id": "delete_events", "title": "Delete Events" },
{ "id": "run_events", "title": "Run Events" },
{ "id": "abort_events", "title": "Abort Events" },
{ "id": "state_update", "title": "Toggle Scheduler" }
],
"new_event_template": {
"enabled": 1,
"params": {},
"timing": { "minutes": [0] },
"max_children": 1,
"timeout": 3600,
"catch_up": 0,
"queue_max": 1000
}
},
"Storage": { "client": {
"engine": "Filesystem", "name": "Cronicle",
"list_page_size": 50, "debug": 1,
"concurrency": 4, "default_password_type": "password",
"log_event_types": { "get": 1, "put": 1, "head": 1, "delete": 1, "expire_set": 1 }, "privilege_list": [
{ "id": "admin", "title": "Administrator" },
{ "id": "create_events", "title": "Create Events" },
{ "id": "edit_events", "title": "Edit Events" },
{ "id": "delete_events", "title": "Delete Events" },
{ "id": "run_events", "title": "Run Events" },
{ "id": "abort_events", "title": "Abort Events" },
{ "id": "state_update", "title": "Toggle Scheduler" }
],
"new_event_template": {
"enabled": 1,
"params": {},
"timing": { "minutes": [0] },
"max_children": 1,
"timeout": 3600,
"catch_up": 0,
"queue_max": 1000
}
},
"transactions": true, "Storage": {
"trans_auto_recover": true, "engine": "Filesystem",
"list_page_size": 50,
"concurrency": 4,
"log_event_types": { "get": 1, "put": 1, "head": 1, "delete": 1, "expire_set": 1 },
"Filesystem": { "transactions": true,
"base_dir": "data", "trans_auto_recover": true,
"key_namespaces": 1
}
},
"WebServer": { "Filesystem": {
"http_port": 3012, "base_dir": "data",
"http_htdocs_dir": "htdocs", "key_namespaces": 1
"http_max_upload_size": 104857600, }
"http_static_ttl": 3600, },
"http_static_index": "index.html",
"http_server_signature": "Cronicle 1.0",
"http_gzip_text": true,
"http_timeout": 30,
"http_regex_json": "(text|javascript|js|json)",
"http_response_headers": {
"Access-Control-Allow-Origin": "*"
},
"https": false, "WebServer": {
"https_port": 3013, "http_port": 3012,
"https_cert_file": "conf/ssl.crt", "http_htdocs_dir": "htdocs",
"https_key_file": "conf/ssl.key", "http_max_upload_size": 104857600,
"https_force": false, "http_static_ttl": 3600,
"https_timeout": 30, "http_static_index": "index.html",
"https_header_detect": { "http_server_signature": "Cronicle 1.0",
"Front-End-Https": "^on$", "http_gzip_text": true,
"X-Url-Scheme": "^https$", "http_timeout": 30,
"X-Forwarded-Protocol": "^https$", "http_regex_json": "(text|javascript|js|json)",
"X-Forwarded-Proto": "^https$", "http_response_headers": {
"X-Forwarded-Ssl": "^on$" "Access-Control-Allow-Origin": "*"
} },
},
"User": { "https": false,
"session_expire_days": 30, "https_port": 3013,
"max_failed_logins_per_hour": 5, "https_cert_file": "conf/ssl.crt",
"max_forgot_passwords_per_hour": 3, "https_key_file": "conf/ssl.key",
"free_accounts": false, "https_force": false,
"sort_global_users": true, "https_timeout": 30,
"use_bcrypt": true, "https_header_detect": {
"Front-End-Https": "^on$",
"X-Url-Scheme": "^https$",
"X-Forwarded-Protocol": "^https$",
"X-Forwarded-Proto": "^https$",
"X-Forwarded-Ssl": "^on$"
}
},
"email_templates": { "User": {
"welcome_new_user": "conf/emails/welcome_new_user.txt", "session_expire_days": 30,
"changed_password": "conf/emails/changed_password.txt", "max_failed_logins_per_hour": 5,
"recover_password": "conf/emails/recover_password.txt" "max_forgot_passwords_per_hour": 3,
}, "free_accounts": false,
"sort_global_users": true,
"use_bcrypt": true,
"default_privileges": { "email_templates": {
"admin": 0, "welcome_new_user": "conf/emails/welcome_new_user.txt",
"create_events": 1, "changed_password": "conf/emails/changed_password.txt",
"edit_events": 1, "recover_password": "conf/emails/recover_password.txt"
"delete_events": 1, },
"run_events": 0,
"abort_events": 0, "default_privileges": {
"state_update": 0 "admin": 0,
} "create_events": 1,
} "edit_events": 1,
"delete_events": 1,
"run_events": 0,
"abort_events": 0,
"state_update": 0
}
}
} }