docs: make clone commands copy-ready
This commit is contained in:
@@ -42,13 +42,12 @@ WebSocket traffic always reach `tproxy-server`.
|
|||||||
### Quick installation on a fresh VPS
|
### Quick installation on a fresh VPS
|
||||||
|
|
||||||
Use a clean x86_64 VPS running Ubuntu or Debian. Create one direct DNS `A`
|
Use a clean x86_64 VPS running Ubuntu or Debian. Create one direct DNS `A`
|
||||||
record for the proxy hostname. Copy the HTTPS clone URL from the Gitea **Code**
|
record for the proxy hostname, connect to the VPS over SSH, and run:
|
||||||
menu, connect to the VPS over SSH, and run:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
git clone <REPOSITORY_URL>
|
git clone https://gitea.sibdata.ru/dir/telegram-web-proxy-stack.git
|
||||||
cd telegram-web-proxy-stack
|
cd telegram-web-proxy-stack
|
||||||
sudo ./quick-install.sh
|
sudo ./quick-install.sh
|
||||||
```
|
```
|
||||||
|
|||||||
+3
-5
@@ -22,14 +22,12 @@
|
|||||||
прямо на публичный IPv4 этого VPS;
|
прямо на публичный IPv4 этого VPS;
|
||||||
- открытые у провайдера сервера входящие TCP-порты `80` и `443`.
|
- открытые у провайдера сервера входящие TCP-порты `80` и `443`.
|
||||||
|
|
||||||
На странице проекта в Gitea нажмите **Code**, скопируйте адрес **HTTPS**, затем
|
Подключитесь к VPS по SSH и целиком скопируйте этот блок команд:
|
||||||
подключитесь к VPS по SSH и выполните команды ниже. Вместо текста в угловых
|
|
||||||
скобках вставьте скопированный адрес:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y git
|
sudo apt install -y git
|
||||||
git clone <АДРЕС_РЕПОЗИТОРИЯ>
|
git clone https://gitea.sibdata.ru/dir/telegram-web-proxy-stack.git
|
||||||
cd telegram-web-proxy-stack
|
cd telegram-web-proxy-stack
|
||||||
sudo ./quick-install.sh
|
sudo ./quick-install.sh
|
||||||
```
|
```
|
||||||
@@ -124,7 +122,7 @@ WEB relay
|
|||||||
Docker-хосте:
|
Docker-хосте:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone <URL_РЕПОЗИТОРИЯ>
|
git clone https://gitea.sibdata.ru/dir/telegram-web-proxy-stack.git
|
||||||
cd telegram-web-proxy-stack
|
cd telegram-web-proxy-stack
|
||||||
./install.sh
|
./install.sh
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ scan_network_literals() {
|
|||||||
domain="$(printf '%s' "$domain" | tr '[:upper:]' '[:lower:]' | sed 's/[^[:alnum:].-]$//')"
|
domain="$(printf '%s' "$domain" | tr '[:upper:]' '[:lower:]' | sed 's/[^[:alnum:].-]$//')"
|
||||||
case "$domain" in
|
case "$domain" in
|
||||||
github.com | core.telegram.org | download.docker.com | docker.io | containerd.io | \
|
github.com | core.telegram.org | download.docker.com | docker.io | containerd.io | \
|
||||||
|
gitea.sibdata.ru | \
|
||||||
example.com | *.example.com | *.localhost | \
|
example.com | *.example.com | *.localhost | \
|
||||||
*.md | *.sh | *.json | *.yml | *.yaml | *.html | *.go | *.js | \
|
*.md | *.sh | *.json | *.yml | *.yaml | *.html | *.go | *.js | \
|
||||||
*.gz | *.pem | *.key | *.p12 | *.pfx | *.example) ;;
|
*.gz | *.pem | *.key | *.p12 | *.pfx | *.example) ;;
|
||||||
@@ -141,6 +142,7 @@ while IFS= read -r revision; do
|
|||||||
domain="$(printf '%s' "$domain" | tr '[:upper:]' '[:lower:]' | sed 's/[^[:alnum:].-]$//')"
|
domain="$(printf '%s' "$domain" | tr '[:upper:]' '[:lower:]' | sed 's/[^[:alnum:].-]$//')"
|
||||||
case "$domain" in
|
case "$domain" in
|
||||||
github.com | core.telegram.org | download.docker.com | docker.io | containerd.io | \
|
github.com | core.telegram.org | download.docker.com | docker.io | containerd.io | \
|
||||||
|
gitea.sibdata.ru | \
|
||||||
example.com | *.example.com | *.localhost | \
|
example.com | *.example.com | *.localhost | \
|
||||||
*.md | *.sh | *.json | *.yml | *.yaml | *.html | *.go | *.js | \
|
*.md | *.sh | *.json | *.yml | *.yaml | *.html | *.go | *.js | \
|
||||||
*.gz | *.pem | *.key | *.p12 | *.pfx | *.example) ;;
|
*.gz | *.pem | *.key | *.p12 | *.pfx | *.example) ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user