blob: 0c52ac656c4c1e6d4b5fd4de711ffd27ac98c36d [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<?php
2$conf = [];
3$conf["db"] = [];
4$conf["db"]["user"] = ""; // Enter the MySQL username
5$conf["db"]["password"] = ""; // Enter the MySQL password
6$conf["db"]["database"] = ""; // Enter the MySQL database name
7$conf["db"]["host"] = ""; // Enter the MySQL host
8
9$conf["path"] = ""; // Enter the absolute path to the website
10$conf["fullPath"] = ""; // Enter the URI pointing to the website
11$conf["appName"] = "Registro horario"; // Enter the name of the website
12$conf["passwordLen"] = 10; // Password length for the automatically generated passwords
13$conf["enableWorkerUI"] = true; // Allows workers to sign in in order to view their incidents and schedule, and enter new incidents (which will go to the moderation queue)
14$conf["attachmentsFolder"] = ""; // Folder where incident attachments will be saved, with a slash at the end (ex: "/home/user/files/")
15$conf["backgroundColor"] = "green"; // Background color of the website (hex or mdl color)
16$conf["backgroundColorIsDark"] = false; // Whether the background color is dark
17$conf["logo"] = ""; // Optional, set it to a URL of a logo which will be displayed in the nav bar.
18$conf["enableRecovery"] = false; // Sets whether users can recover passwords.
19$conf["debug"] = false; // Sets whether the app shows debug information useful to the developer. WARNING: DO NOT ENABLE IN PRODUCTION AS IT MAY SHOW SENSITIVE INFORMATION
20$conf["superdebug"] = false; // Sets whether to enable super debug mode (for now it only disables redirects and displays verbose errors when calling security::checkParams())
21
22$conf["pdfs"] = [];
23$conf["pdfs"]["workersAlwaysHaveBreakfastAndLunch"] = false; // Sets up whether when an incident overlaps breakfast or lunch, the length of the incident should subtract lunch and breakfast time (false) or not because workers will have lunch or breakfast at another time inside of the work schedule (true). WARNING: SETTING THIS TO TRUE MAY LEAD TO UNEXPECTED RESULTS IN THE SUMMARY SHOWN AT THE BOTTOM OF DETAILED PDFs.
24$conf["pdfs"]["showExactTimeForBreakfastAndLunch"] = true; // Whether time for breakfast and lunch should be indicated with the start and end time (true) or with a summary of how many hours it consisted of (false).
25
26$conf["validation"] = [];
27$conf["validation"]["defaultMethod"] = validations::METHOD_SIMPLE; // Validation method which will be shown by default to a worker to validate incidents/records.
28$conf["validation"]["allowedMethods"] = [validations::METHOD_SIMPLE]; // Validation methods which are allowed to be used by a worker.
29$conf["validation"]["gracePeriod"] = 3; // Grace period for considering a validation as pending by some parts of the script (more info at https://avm99963.github.io/hores-external/administradores/instalacion-y-configuracion/configuracion/#notificacion-de-validaciones-pendientes)
30
31$conf["secondFactor"] = [];
32$conf["secondFactor"]["enabled"] = false; // Whether the second factor is allowed to be used
33$conf["secondFactor"]["origin"] = ""; // Domain name where the application will be hosted (for instance, "example.org")
34
35$conf["mail"] = []; // SMTP details for the email account which sends email notifications
36$conf["mail"]["enabled"] = false; // Whether the app will send email notifications
37$conf["mail"]["smtpauth"] = true; // Whether the SMTP server should be contacted securely
38$conf["mail"]["host"] = ""; // SMTP server host
39$conf["mail"]["port"] = 587; // SMTP server port
40$conf["mail"]["username"] = ""; // Username of the email account
41$conf["mail"]["password"] = ""; // Password of the email account
42$conf["mail"]["remitent"] = ""; // Email address set as the remitent of the emails sent
43$conf["mail"]["remitentName"] = ""; // Name of the remitent
44$conf["mail"]["subjectPrefix"] = "[Registro horario]"; // Prefix which will be added to the subject of all emails
45$conf["mail"]["adminEmail"] = ""; // Email address of the site administrator
46
47$conf["mail"]["capabilities"] = []; // Individual switches for certain email notifications
48$conf["mail"]["capabilities"]["notifyOnWorkerIncidentCreation"] = true; // Notify the site administrator when a worker creates an incident
49$conf["mail"]["capabilities"]["notifyOnAdminIncidentCreation"] = true; // Notify the site administrator when an admin creates an incident
50$conf["mail"]["capabilities"]["notifyCategoryResponsiblesOnIncidentCreation"] = true; // Notify category responsibles when an incident is created either by an admin or a worker (only if the incident type is configured with the 'notify' option)
51$conf["mail"]["capabilities"]["notifyWorkerOnIncidentDecision"] = true; // Notify a worker when their incident is verified to let them know if it was approved or not
52$conf["mail"]["capabilities"]["sendPendingValidationsReminder"] = true; // Notify a worker monthly if they have pending incidents or records to validate
53
54$conf["signinThrottling"] = []; // Settings for the security feature of the app which disables login when it detects unusual behaviour
55$conf["signinThrottling"]["attemptCountLimit"] = []; // Sets limits for the number of sign-in attempts made in the last 10 seconds
56$conf["signinThrottling"]["attemptCountLimit"]["global"] = 300; // Global limit for all sign-in attempts
57$conf["signinThrottling"]["attemptCountLimit"]["ip"] = 25; // Limit for the sign-in attempts made by a single IP address
58$conf["signinThrottling"]["attemptCountLimit"]["ipBlock"] = 100; // Limit for the sign-in attempts made by an IP address block
59$conf["signinThrottling"]["attemptCountLimit"]["ipBlocksPerUsername"] = 3; // Limit for the number of different ip blocks allowed to make sign-in attempts to a single user account
60$conf["signinThrottling"]["attemptCountLimit"]["username"] = 5; // Limit for the sign-in attempts willing to sign in to a single user account
61
62$conf["signinThrottling"]["retentionDays"] = 30; // Sets for how many days we should keep the records in the signinattempts table