mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-04-29 14:59:49 +00:00
docs(i18n): sync documentation updates to 32 languages
This commit is contained in:
parent
857b692aac
commit
e5c4e450c0
2062 changed files with 257153 additions and 64249 deletions
|
|
@ -4,30 +4,37 @@
|
|||
|
||||
---
|
||||
|
||||
OmniRoute'u Cloudflare aracılığıyla yönetilen etki alanına sahip bir VM'ye (VPS) yüklemek ve yapılandırmak için eksiksiz kılavuz.---
|
||||
Complete guide to install and configure OmniRoute on a VM (VPS) with domain managed via Cloudflare.
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
| Ürün | Asgari | Önerilen |
|
||||
| ------------------- | -------------------- | ---------------- |
|
||||
| **CPU** | 1 vCPU | 2 vCPU |
|
||||
| **RAM** | 1GB | 2GB |
|
||||
| **Disk** | 10GB SSD | 25GB SSD |
|
||||
| **İşletim Sistemi** | Ubuntu 22.04LTS | Ubuntu 24.04LTS |
|
||||
| **Alan adı** | Cloudflare'e Kayıtlı | — |
|
||||
| **Docker** | Docker Motoru 24+ | Liman işçisi 27+ |
|
||||
| Item | Minimum | Recommended |
|
||||
| ---------- | ------------------------ | ---------------- |
|
||||
| **CPU** | 1 vCPU | 2 vCPU |
|
||||
| **RAM** | 1 GB | 2 GB |
|
||||
| **Disk** | 10 GB SSD | 25 GB SSD |
|
||||
| **OS** | Ubuntu 22.04 LTS | Ubuntu 24.04 LTS |
|
||||
| **Domain** | Registered on Cloudflare | — |
|
||||
| **Docker** | Docker Engine 24+ | Docker 27+ |
|
||||
|
||||
**Test edilen sağlayıcılar**: Akamai (Linode), DigitalOcean, Vultr, Hetzner, AWS Lightsail.---
|
||||
**Tested providers**: Akamai (Linode), DigitalOcean, Vultr, Hetzner, AWS Lightsail.
|
||||
|
||||
---
|
||||
|
||||
## 1. Configure the VM
|
||||
|
||||
### 1.1 Create the instance
|
||||
|
||||
Tercih ettiğiniz VPS sağlayıcısında:
|
||||
On your preferred VPS provider:
|
||||
|
||||
- Ubuntu 24.04 LTS'yi seçin
|
||||
- Minimum planı seçin (1 vCPU / 1 GB RAM)
|
||||
- Güçlü bir kök şifresi belirleyin veya SSH anahtarını yapılandırın -**genel IP'ye**dikkat edin (ör. '203.0.113.10')### 1.2 Connect via SSH
|
||||
- Choose Ubuntu 24.04 LTS
|
||||
- Select the minimum plan (1 vCPU / 1 GB RAM)
|
||||
- Set a strong root password or configure SSH key
|
||||
- Note the **public IP** (e.g., `203.0.113.10`)
|
||||
|
||||
### 1.2 Connect via SSH
|
||||
|
||||
```bash
|
||||
ssh root@203.0.113.10
|
||||
|
|
@ -71,7 +78,9 @@ ufw allow 443/tcp # HTTPS
|
|||
ufw enable
|
||||
```
|
||||
|
||||
> **İpucu**: Maksimum güvenlik için 80 ve 443 numaralı bağlantı noktalarını yalnızca Cloudflare IP'leriyle sınırlayın. [Gelişmiş Güvenlik](#gelişmiş güvenlik) bölümüne bakın.---
|
||||
> **Tip**: For maximum security, restrict ports 80 and 443 to Cloudflare IPs only. See the [Advanced Security](#advanced-security) section.
|
||||
|
||||
---
|
||||
|
||||
## 2. Install OmniRoute
|
||||
|
||||
|
|
@ -113,7 +122,9 @@ NEXT_PUBLIC_BASE_URL=https://llms.seudominio.com
|
|||
EOF
|
||||
```
|
||||
|
||||
> ⚠️**ÖNEMLİ**: Benzersiz gizli anahtarlar oluşturun! Her anahtar için 'openssl rand -hex 32' kullanın.### 2.3 Start the container
|
||||
> ⚠️ **IMPORTANT**: Generate unique secret keys! Use `openssl rand -hex 32` for each key.
|
||||
|
||||
### 2.3 Start the container
|
||||
|
||||
```bash
|
||||
docker pull diegosouzapw/omniroute:latest
|
||||
|
|
@ -134,28 +145,32 @@ docker ps | grep omniroute
|
|||
docker logs omniroute --tail 20
|
||||
```
|
||||
|
||||
Şunu görüntülemelidir: `[DB] SQLite veritabanı hazır` ve `20128 numaralı bağlantı noktasında dinleniliyor`.---
|
||||
It should display: `[DB] SQLite database ready` and `listening on port 20128`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Configure nginx (Reverse Proxy)
|
||||
|
||||
### 3.1 Generate SSL certificate (Cloudflare Origin)
|
||||
|
||||
Cloudflare kontrol panelinde:
|
||||
In the Cloudflare dashboard:
|
||||
|
||||
1.**SSL/TLS → Origin Sunucusu**'na gidin 2.**Sertifika Oluştur**'a tıklayın 3. Varsayılanları koruyun (15 yıl, \*.alaniniz.com) 4.**Menşe Sertifikasını**ve**Özel Anahtarı**kopyalayın```bash
|
||||
1. Go to **SSL/TLS → Origin Server**
|
||||
2. Click **Create Certificate**
|
||||
3. Keep the defaults (15 years, \*.yourdomain.com)
|
||||
4. Copy the **Origin Certificate** and the **Private Key**
|
||||
|
||||
```bash
|
||||
mkdir -p /etc/nginx/ssl
|
||||
|
||||
# Paste the certificate
|
||||
|
||||
nano /etc/nginx/ssl/origin.crt
|
||||
|
||||
# Paste the private key
|
||||
|
||||
nano /etc/nginx/ssl/origin.key
|
||||
|
||||
chmod 600 /etc/nginx/ssl/origin.key
|
||||
|
||||
````
|
||||
```
|
||||
|
||||
### 3.2 Nginx Configuration
|
||||
|
||||
|
|
@ -213,11 +228,13 @@ server {
|
|||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
NGINX
|
||||
````
|
||||
```
|
||||
|
||||
Ters proxy akış zaman aşımlarını OmniRoute zaman aşımı ortamı değişkenlerinizle uyumlu tutun. Eğer yükseltirsen
|
||||
`FETCH_TIMEOUT_MS` / `STREAM_IDLE_TIMEOUT_MS`, `proxy_read_timeout` / `proxy_send_timeout`u artır
|
||||
aynı eşiğin üstünde.### 3.3 Enable and Test
|
||||
Keep reverse-proxy stream timeouts aligned with your OmniRoute timeout env vars. If you raise
|
||||
`FETCH_TIMEOUT_MS` / `STREAM_IDLE_TIMEOUT_MS`, raise `proxy_read_timeout` / `proxy_send_timeout`
|
||||
above the same threshold.
|
||||
|
||||
### 3.3 Enable and Test
|
||||
|
||||
```bash
|
||||
# Remove default configuration
|
||||
|
|
@ -236,21 +253,25 @@ nginx -t && systemctl reload nginx
|
|||
|
||||
### 4.1 Add DNS record
|
||||
|
||||
Cloudflare kontrol panelinde → DNS:
|
||||
In the Cloudflare dashboard → DNS:
|
||||
|
||||
| Tür | İsim | İçerik | Vekil |
|
||||
| --- | ----- | ------------------------- | ------------ | --------------------- |
|
||||
| bir | `llm' | '203.0.113.10' (VM IP'si) | ✅ Vekaleten | ### 4.2 Configure SSL |
|
||||
| Type | Name | Content | Proxy |
|
||||
| ---- | ------ | ---------------------- | ---------- |
|
||||
| A | `llms` | `203.0.113.10` (VM IP) | ✅ Proxied |
|
||||
|
||||
**SSL/TLS → Genel Bakış**altında:
|
||||
### 4.2 Configure SSL
|
||||
|
||||
- Mod:**Tam (Katı)**
|
||||
Under **SSL/TLS → Overview**:
|
||||
|
||||
**SSL/TLS → Edge Sertifikaları**altında:
|
||||
- Mode: **Full (Strict)**
|
||||
|
||||
- Her Zaman HTTPS Kullan: ✅ Açık
|
||||
- Minimum TLS Sürümü: TLS 1.2
|
||||
- Otomatik HTTPS Yeniden Yazmaları: ✅ Açık### 4.3 Testing
|
||||
Under **SSL/TLS → Edge Certificates**:
|
||||
|
||||
- Always Use HTTPS: ✅ On
|
||||
- Minimum TLS Version: TLS 1.2
|
||||
- Automatic HTTPS Rewrites: ✅ On
|
||||
|
||||
### 4.3 Testing
|
||||
|
||||
```bash
|
||||
curl -sI https://llms.seudominio.com/health
|
||||
|
|
@ -329,10 +350,11 @@ real_ip_header CF-Connecting-IP;
|
|||
CF
|
||||
```
|
||||
|
||||
`http {}` bloğunun içindeki `nginx.conf` dosyasına aşağıdakini ekleyin:```nginx
|
||||
include /etc/nginx/cloudflare-ips.conf;
|
||||
Add the following to `nginx.conf` inside the `http {}` block:
|
||||
|
||||
````
|
||||
```nginx
|
||||
include /etc/nginx/cloudflare-ips.conf;
|
||||
```
|
||||
|
||||
### Install fail2ban
|
||||
|
||||
|
|
@ -343,7 +365,7 @@ systemctl start fail2ban
|
|||
|
||||
# Check status
|
||||
fail2ban-client status sshd
|
||||
````
|
||||
```
|
||||
|
||||
### Block direct access to the Docker port
|
||||
|
||||
|
|
@ -361,25 +383,25 @@ netfilter-persistent save
|
|||
|
||||
## 7. Deploy to Cloudflare Workers (Optional)
|
||||
|
||||
Cloudflare Workers aracılığıyla uzaktan erişim için (VM'yi doğrudan açığa çıkarmadan):```bash
|
||||
For remote access via Cloudflare Workers (without exposing the VM directly):
|
||||
|
||||
```bash
|
||||
# In the local repository
|
||||
|
||||
cd omnirouteCloud
|
||||
npm install
|
||||
npx wrangler login
|
||||
npx wrangler deploy
|
||||
|
||||
```
|
||||
|
||||
[omnirouteCloud/README.md](../omnirouteCloud/README.md) adresindeki belgelerin tamamına bakın.---
|
||||
See the full documentation at [omnirouteCloud/README.md](../omnirouteCloud/README.md).
|
||||
|
||||
---
|
||||
|
||||
## Port Summary
|
||||
|
||||
| Liman | Hizmet | Erişim |
|
||||
| Port | Service | Access |
|
||||
| ----- | ----------- | -------------------------- |
|
||||
| 22 | SSH | Genel (fail2ban ile) |
|
||||
| 80 | nginx HTTP | Yönlendir → HTTPS |
|
||||
| 443 | nginx HTTPS | Cloudflare Proxy aracılığıyla |
|
||||
| 20128 | OmniRoute | Yalnızca Localhost (nginx aracılığıyla) |
|
||||
```
|
||||
| 22 | SSH | Public (with fail2ban) |
|
||||
| 80 | nginx HTTP | Redirect → HTTPS |
|
||||
| 443 | nginx HTTPS | Via Cloudflare Proxy |
|
||||
| 20128 | OmniRoute | Localhost only (via nginx) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue