mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-26 14:14:41 +02:00
Installation instructions
This commit is contained in:
parent
e3461e553b
commit
2bd30048af
1 changed files with 73 additions and 0 deletions
73
README.md
73
README.md
|
@ -19,6 +19,79 @@ Namingo is inspired by XPanel Registry (https://github.com/XPanel/epp), which is
|
||||||
|
|
||||||
## Installation & Usage
|
## Installation & Usage
|
||||||
|
|
||||||
|
1. Install the required packages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
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' | gpg --dearmor -o /usr/share/keyrings/caddy-archive-keyring.gpg
|
||||||
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/deb.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
|
||||||
|
apt update && apt upgrade
|
||||||
|
apt install -y bzip2 composer curl git gnupg2 mariadb-client mariadb-server net-tools php8.2 php8.2-bcmath php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd php8.2-gnupg php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-swoole php8.2-xml phpmyadmin unzip wget whois
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Install Adminer:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir /usr/share/adminer
|
||||||
|
wget "http://www.adminer.org/latest.php" -O /usr/share/adminer/latest.php
|
||||||
|
ln -s /usr/share/adminer/latest.php /usr/share/adminer/adminer.php
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Edit ```/etc/caddy/Caddyfile``` and place the following content:
|
||||||
|
|
||||||
|
```
|
||||||
|
rdap.example.com {
|
||||||
|
bind YOUR_IPV4_ADDRESS YOUR_IPV6_ADDRESS
|
||||||
|
reverse_proxy localhost:7500
|
||||||
|
encode gzip
|
||||||
|
file_server
|
||||||
|
tls your-email@example.com
|
||||||
|
protocols {
|
||||||
|
experimental_http3
|
||||||
|
strict_sni_host
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
whois.example.com {
|
||||||
|
bind YOUR_IPV4_ADDRESS YOUR_IPV6_ADDRESS
|
||||||
|
root * /path/to/your/whois/app
|
||||||
|
encode gzip
|
||||||
|
php_fastcgi unix//run/php/php8.2-fpm.sock
|
||||||
|
file_server
|
||||||
|
tls your-email@example.com
|
||||||
|
protocols {
|
||||||
|
experimental_http3
|
||||||
|
strict_sni_host
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
cp.example.com {
|
||||||
|
bind NEW_IPV4_ADDRESS NEW_IPV6_ADDRESS
|
||||||
|
root * /path/to/your/php/app
|
||||||
|
php_fastcgi unix//run/php/php8.2-fpm.sock
|
||||||
|
encode gzip
|
||||||
|
file_server
|
||||||
|
tls your-email@example.com
|
||||||
|
protocols {
|
||||||
|
experimental_http3
|
||||||
|
strict_sni_host
|
||||||
|
}
|
||||||
|
# Adminer Configuration
|
||||||
|
route /adminer.php* {
|
||||||
|
uri strip_prefix /adminer.php
|
||||||
|
php_fastcgi unix//run/php/php8.2-fpm.sock
|
||||||
|
}
|
||||||
|
alias /adminer.php /usr/share/adminer/adminer.php
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Reload Caddy:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl enable caddy
|
||||||
|
systemctl restart caddy
|
||||||
|
```
|
||||||
|
|
||||||
## Support & Documentation
|
## Support & Documentation
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue