diff --git a/back/app.conf b/back/app.conf index 0dea9ba7..fd65a635 100755 --- a/back/app.conf +++ b/back/app.conf @@ -3,13 +3,12 @@ # Generated: 2022-12-30_22-19-40 # # # # Config file for the LAN intruder detection app: # -# https://github.com/jokob-sk/NetAlertX # +# https://github.com/jokob-sk/NetAlertX # # # #-----------------AUTOGENERATED FILE-----------------# # 🔺 Use the Settings UI - only edit when necessary 🔺 - # General #--------------------------- # Scan using interface eth0 @@ -19,15 +18,18 @@ # SCAN_SUBNETS = [ '192.168.1.0/24 --interface=eth1', '192.168.1.0/24 --interface=eth0' ] SCAN_SUBNETS=['192.168.1.0/24 --interface=eth1'] - TIMEZONE='Europe/Berlin' +LOADED_PLUGINS = ['ARPSCAN','CSVBCKP','DBCLNP', 'INTRNT','MAINT','NEWDEV','NSLOOKUP','NTFPRCS', 'PHOLUS','SETPWD','SMTP', 'SYNC', 'VNDRPDT', 'WORKFLOWS'] + DAYS_TO_KEEP_EVENTS=90 # Used for generating links in emails. Make sure not to add a trailing slash! REPORT_DASHBOARD_URL='http://netalertx' -# Email -#--------------------------- +# Email +#------------------------------------- +# (add SMTP to LOADED_PLUGINS to load) +#------------------------------------- SMTP_RUN='disabled' # use 'on_notification' to enable SMTP_SERVER='smtp.gmail.com' SMTP_PORT=587 @@ -39,8 +41,10 @@ SMTP_PASS='password' SMTP_SKIP_TLS=False -# Webhooks -#--------------------------- +# Webhook +#------------------------------------- +# (add WEBHOOK to LOADED_PLUGINS to load) +#------------------------------------- WEBHOOK_RUN='disabled' # use 'on_notification' to enable WEBHOOK_URL='http://n8n.local:5555/webhook-test/aaaaaaaa-aaaa-aaaa-aaaaa-aaaaaaaaaaaa' WEBHOOK_PAYLOAD='json' # webhook payload data format for the "body > attachements > text" attribute @@ -50,15 +54,19 @@ WEBHOOK_PAYLOAD='json' # webhook payload data format for the "bo WEBHOOK_REQUEST_METHOD='GET' -# Apprise -#--------------------------- +# Apprise +#------------------------------------- +# (add APPRISE to LOADED_PLUGINS to load) +#------------------------------------- APPRISE_RUN='disabled' # use 'on_notification' to enable APPRISE_HOST='http://localhost:8000/notify' APPRISE_URL='mailto://smtp-relay.sendinblue.com:587?from=user@gmail.com&name=apprise&user=user@gmail.com&pass=password&to=user@gmail.com' # NTFY -#--------------------------- +#------------------------------------- +# (add NTFY to LOADED_PLUGINS to load) +#------------------------------------- NTFY_RUN='disabled' # use 'on_notification' to enable NTFY_HOST='https://ntfy.sh' NTFY_TOPIC='replace_my_secure_topicname_91h889f28' @@ -66,14 +74,18 @@ NTFY_USER='user' NTFY_PASSWORD='passw0rd' -# PUSHSAFER -#--------------------------- +# PUSHSAFER +#------------------------------------- +# (add PUSHSAFER to LOADED_PLUGINS to load) +#------------------------------------- PUSHSAFER_RUN='disabled' # use 'on_notification' to enable PUSHSAFER_TOKEN='ApiKey' -# MQTT -#--------------------------- +# MQTT +#------------------------------------- +# (add MQTT to LOADED_PLUGINS to load) +#------------------------------------- MQTT_RUN='disabled' # use 'on_notification' to enable MQTT_BROKER='192.168.1.2' MQTT_PORT=1883 diff --git a/front/js/modal.js b/front/js/modal.js index bcb173d4..59d24b0f 100755 --- a/front/js/modal.js +++ b/front/js/modal.js @@ -337,7 +337,7 @@ const phpEndpoint = 'php/server/utilNotification.php'; // -------------------------------------------------- // Write a notification -function writeNotification(content, level) { +function write_notification(content, level) { $.ajax({ url: phpEndpoint, // Change this to the path of your PHP script diff --git a/front/maintenance.php b/front/maintenance.php index 25722ceb..77b163ae 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -454,7 +454,6 @@ $db->close(); -