Update to automation system

This commit is contained in:
Pinga 2024-01-10 20:59:42 +02:00
parent 7003a71607
commit e339ddb16e
4 changed files with 169 additions and 6 deletions

View file

@ -441,10 +441,6 @@ composer require phpmailer/phpmailer
This command will install one of the packages which are essential for the message broker script to function correctly.
### Configuring the Crontab for Automation Scripts
To set up automated tasks for Namingo, open the example crontab file located at ```/opt/registry/automation/crontab.example```. Review the contents and copy the relevant lines into your system's crontab file. Remember to adjust the paths and timings as necessary to suit your environment.
### Configuring the Message Broker
You can easily configure the message broker for email delivery in ```config.php```. It is compatible with SendGrid, Mailgun API, and PHPMailer for those opting to use their own SMTP server. All necessary settings are conveniently located under the mailer_ lines within the file.
@ -526,6 +522,17 @@ Always keep your private key secure. Do not share it. If someone gains access to
Please send the exported `publickey.asc` to your RDE provider, and also place the path to `privatekey.asc` in the escrow.php system as required.
### Running the Automation System
Once you have successfully configured all automation scripts, you are ready to initiate the automation system. Please proceed by executing the commands listed below:
```bash
cd /opt/registry/automation
php cron.php start
```
Alternatively, you may opt for the traditional Linux crontab method. Should you choose this approach, begin by accessing the sample crontab file at ```/opt/registry/automation/crontab.example```. Carefully examine its contents, and then copy the pertinent lines into your system's crontab file.
## 13. Setup DAS:
```bash

View file

@ -405,7 +405,7 @@ EOF
echo -e "Next steps:\n"
echo -e "1. Configure each component by editing their respective configuration files."
echo -e "2. Once configuration is complete, start each service with the following command:\n systemctl start SERVICE_NAME.service\n Replace 'SERVICE_NAME' with the specific service (whois, rdap, epp, das) as needed."
echo -e "3. To set up automation services, refer to the configuration manual and edit the files in:\n /opt/registry/automation\n"
echo -e "3. To set up automation services, refer to the configuration manual, edit the config in:\n /opt/registry/automation/config.php and run php /opt/registry/automation/cron.php start\n"
echo -e "For more detailed information, please consult the accompanying documentation or support resources."
else
echo "Unsupported Linux distribution or version"