mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 18:45:59 +02:00
Update README.md
This commit is contained in:
parent
2bd30048af
commit
65a986ad64
1 changed files with 25 additions and 19 deletions
44
README.md
44
README.md
|
@ -24,10 +24,11 @@ Namingo is inspired by XPanel Registry (https://github.com/XPanel/epp), which is
|
|||
```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
|
||||
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 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
|
||||
apt install -y bzip2 caddy 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 unzip wget whois
|
||||
```
|
||||
|
||||
2. Install Adminer:
|
||||
|
@ -38,7 +39,19 @@ 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:
|
||||
3. Download Namingo:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/getnamingo/registry
|
||||
```
|
||||
|
||||
4. Configure MariaDB:
|
||||
|
||||
```bash
|
||||
mysql_secure_installation
|
||||
```
|
||||
|
||||
5. Edit ```/etc/caddy/Caddyfile``` and place the following content:
|
||||
|
||||
```
|
||||
rdap.example.com {
|
||||
|
@ -46,10 +59,8 @@ rdap.example.com {
|
|||
reverse_proxy localhost:7500
|
||||
encode gzip
|
||||
file_server
|
||||
tls your-email@example.com
|
||||
protocols {
|
||||
experimental_http3
|
||||
strict_sni_host
|
||||
tls your-email@example.com {
|
||||
alpn h2,h3
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,10 +70,8 @@ whois.example.com {
|
|||
encode gzip
|
||||
php_fastcgi unix//run/php/php8.2-fpm.sock
|
||||
file_server
|
||||
tls your-email@example.com
|
||||
protocols {
|
||||
experimental_http3
|
||||
strict_sni_host
|
||||
tls your-email@example.com {
|
||||
alpn h2,h3
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,21 +81,18 @@ cp.example.com {
|
|||
php_fastcgi unix//run/php/php8.2-fpm.sock
|
||||
encode gzip
|
||||
file_server
|
||||
tls your-email@example.com
|
||||
protocols {
|
||||
experimental_http3
|
||||
strict_sni_host
|
||||
tls your-email@example.com {
|
||||
alpn h2,h3
|
||||
}
|
||||
# Adminer Configuration
|
||||
route /adminer.php* {
|
||||
uri strip_prefix /adminer.php
|
||||
root * /usr/share/adminer
|
||||
php_fastcgi unix//run/php/php8.2-fpm.sock
|
||||
}
|
||||
alias /adminer.php /usr/share/adminer/adminer.php
|
||||
}
|
||||
```
|
||||
|
||||
4. Reload Caddy:
|
||||
6. Reload Caddy:
|
||||
|
||||
```bash
|
||||
systemctl enable caddy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue