mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 00:27:03 +02:00
Fixed issue with database structure...
and order of installation steps.
This commit is contained in:
parent
fe249d317d
commit
1df7e548e5
3 changed files with 12 additions and 16 deletions
|
@ -79,7 +79,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`allocation_tokens` (
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='allocation tokens';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `registry`.`error_log` (
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`registrar_id` INT(10) unsigned NOT NULL,
|
||||
`log` TEXT NOT NULL,
|
||||
`date` TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP,
|
||||
|
@ -804,8 +804,8 @@ CREATE TABLE IF NOT EXISTS `registry`.`tmch_crl` (
|
|||
`update_timestamp` datetime(3) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='TMCH Crl';
|
||||
|
||||
INSERT INTO `registry`.`domain_tld` VALUES('1','.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0');
|
||||
INSERT INTO `registry`.`domain_tld` VALUES('2','.COM.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0');
|
||||
INSERT INTO `registry`.`domain_tld` VALUES('1','.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0',NULL);
|
||||
INSERT INTO `registry`.`domain_tld` VALUES('2','.COM.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0',NULL);
|
||||
|
||||
INSERT INTO `registry`.`domain_price` VALUES('1','1','create','0.00','5.00','10.00','15.00','20.00','25.00','30.00','35.00','40.00','45.00','50.00');
|
||||
INSERT INTO `registry`.`domain_price` VALUES('2','1','renew','0.00','5.00','10.00','15.00','20.00','25.00','30.00','35.00','40.00','45.00','50.00');
|
||||
|
@ -878,8 +878,3 @@ CREATE TABLE IF NOT EXISTS `registryTransaction`.`transaction_identifier` (
|
|||
UNIQUE KEY `svTRID` (`svTRID`),
|
||||
CONSTRAINT `transaction_identifier_ibfk_1` FOREIGN KEY (`registrar_id`) REFERENCES `registry`.`registrar` (`id`) ON DELETE RESTRICT
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='transaction identifier';
|
||||
|
||||
GRANT ALL ON `registryTransaction`.* TO 'registry'@'localhost';
|
||||
GRANT SELECT ON `registryTransaction`.* TO 'registry-select'@'localhost';
|
||||
|
||||
FLUSH PRIVILEGES;
|
|
@ -84,7 +84,7 @@ CREATE TABLE registry.allocation_tokens (
|
|||
);
|
||||
|
||||
CREATE TABLE registry.error_log (
|
||||
"id" INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
"id" INT(11) NOT NULL AUTO_INCREMENT,
|
||||
"registrar_id" int CHECK ("registrar_id" >= 0) NOT NULL,,
|
||||
"log" TEXT NOT NULL,
|
||||
"date" TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP,
|
||||
|
@ -777,8 +777,8 @@ CREATE TABLE registry.tmch_crl (
|
|||
"update_timestamp" TIMESTAMP(3) NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO registry.domain_tld VALUES('1','.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0');
|
||||
INSERT INTO registry.domain_tld VALUES('2','.COM.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0');
|
||||
INSERT INTO registry.domain_tld VALUES('1','.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0',NULL);
|
||||
INSERT INTO registry.domain_tld VALUES('2','.COM.TEST','/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(\.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i','0',NULL);
|
||||
|
||||
INSERT INTO registry.domain_price VALUES (E'1',E'1',E'create',E'0.00',E'5.00',E'10.00',E'15.00',E'20.00',E'25.00',E'30.00',E'35.00',E'40.00',E'45.00',E'50.00');
|
||||
INSERT INTO registry.domain_price VALUES (E'2',E'1',E'renew',E'0.00',E'5.00',E'10.00',E'15.00',E'20.00',E'25.00',E'30.00',E'35.00',E'40.00',E'45.00',E'50.00');
|
||||
|
|
|
@ -3,13 +3,14 @@
|
|||
## 1. Install the required packages:
|
||||
|
||||
```bash
|
||||
apt install -y curl software-properties-common ufw
|
||||
add-apt-repository ppa:ondrej/php
|
||||
apt install -y debian-keyring debian-archive-keyring apt-transport-https
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' -o caddy-stable.gpg.key
|
||||
gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg caddy-stable.gpg.key
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
|
||||
apt update && apt upgrade
|
||||
apt install -y bzip2 caddy composer curl gettext git gnupg2 net-tools php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-ds php8.2-fpm php8.2-gd php8.2-gnupg php8.2-igbinary php8.2-imap php8.2-intl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-redis php8.2-soap php8.2-swoole php8.2-uuid php8.2-xml pv redis unzip wget whois
|
||||
apt install -y bzip2 caddy composer gettext git gnupg2 net-tools php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-ds php8.2-fpm php8.2-gd php8.2-gnupg php8.2-igbinary php8.2-imap php8.2-intl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-redis php8.2-soap php8.2-swoole php8.2-uuid php8.2-xml pv redis unzip wget whois
|
||||
```
|
||||
|
||||
### Configure time:
|
||||
|
@ -154,8 +155,6 @@ mkdir -p /var/log/namingo
|
|||
chown -R www-data:www-data /var/log/namingo
|
||||
```
|
||||
|
||||
Import the provided database file for your database type.
|
||||
|
||||
## 5. Configuring UFW Firewall:
|
||||
|
||||
To securely set up the UFW (Uncomplicated Firewall) for your registry, follow these commands:
|
||||
|
@ -255,6 +254,8 @@ systemctl enable caddy
|
|||
systemctl restart caddy
|
||||
```
|
||||
|
||||
**And now is the right time to import the provided database file for your database type.**
|
||||
|
||||
## 7. Control Panel Setup:
|
||||
|
||||
Use a file management tool or command line to copy the entire ```registry/cp/``` directory and place it into the web server's root directory, typically ```/var/www/```. The target path should be ```/var/www/cp/```.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue