Skip to content

Commit b49b8ee

Browse files
authored
feat(i18n): update translations (#2238)
Co-authored-by: waleedlatif1 <[email protected]>
1 parent 5b9f3d3 commit b49b8ee

31 files changed

+3464
-0
lines changed
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
---
2+
title: Docker
3+
description: Sim Studio mit Docker Compose bereitstellen
4+
---
5+
6+
import { Tab, Tabs } from 'fumadocs-ui/components/tabs'
7+
import { Callout } from 'fumadocs-ui/components/callout'
8+
9+
## Schnellstart
10+
11+
```bash
12+
# Clone and start
13+
git clone https://github.com/simstudioai/sim.git && cd sim
14+
docker compose -f docker-compose.prod.yml up -d
15+
```
16+
17+
Öffnen Sie [http://localhost:3000](http://localhost:3000)
18+
19+
## Produktionseinrichtung
20+
21+
### 1. Umgebung konfigurieren
22+
23+
```bash
24+
# Generate secrets
25+
cat > .env << EOF
26+
DATABASE_URL=postgresql://postgres:postgres@db:5432/simstudio
27+
BETTER_AUTH_SECRET=$(openssl rand -hex 32)
28+
ENCRYPTION_KEY=$(openssl rand -hex 32)
29+
INTERNAL_API_SECRET=$(openssl rand -hex 32)
30+
NEXT_PUBLIC_APP_URL=https://sim.yourdomain.com
31+
BETTER_AUTH_URL=https://sim.yourdomain.com
32+
NEXT_PUBLIC_SOCKET_URL=https://sim.yourdomain.com
33+
EOF
34+
```
35+
36+
### 2. Dienste starten
37+
38+
```bash
39+
docker compose -f docker-compose.prod.yml up -d
40+
```
41+
42+
### 3. SSL einrichten
43+
44+
<Tabs items={['Caddy (Empfohlen)', 'Nginx + Certbot']}>
45+
<Tab value="Caddy (Empfohlen)">
46+
Caddy verwaltet SSL-Zertifikate automatisch.
47+
48+
```bash
49+
# Install Caddy
50+
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
51+
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
52+
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
53+
sudo apt update && sudo apt install caddy
54+
```
55+
56+
Erstellen Sie `/etc/caddy/Caddyfile`:
57+
58+
```
59+
sim.yourdomain.com {
60+
reverse_proxy localhost:3000
61+
62+
handle /socket.io/* {
63+
reverse_proxy localhost:3002
64+
}
65+
}
66+
```
67+
68+
```bash
69+
sudo systemctl restart caddy
70+
```
71+
72+
</Tab>
73+
<Tab value="Nginx + Certbot">
74+
75+
```bash
76+
# Install
77+
sudo apt install nginx certbot python3-certbot-nginx -y
78+
79+
# Create /etc/nginx/sites-available/sim
80+
server {
81+
listen 80;
82+
server_name sim.yourdomain.com;
83+
84+
location / {
85+
proxy_pass http://127.0.0.1:3000;
86+
proxy_http_version 1.1;
87+
proxy_set_header Upgrade $http_upgrade;
88+
proxy_set_header Connection 'upgrade';
89+
proxy_set_header Host $host;
90+
proxy_set_header X-Forwarded-Proto $scheme;
91+
}
92+
93+
location /socket.io/ {
94+
proxy_pass http://127.0.0.1:3002;
95+
proxy_http_version 1.1;
96+
proxy_set_header Upgrade $http_upgrade;
97+
proxy_set_header Connection "upgrade";
98+
}
99+
}
100+
101+
# Enable and get certificate
102+
sudo ln -s /etc/nginx/sites-available/sim /etc/nginx/sites-enabled/
103+
sudo certbot --nginx -d sim.yourdomain.com
104+
```
105+
106+
</Tab>
107+
</Tabs>
108+
109+
## Ollama
110+
111+
```bash
112+
# With GPU
113+
docker compose -f docker-compose.ollama.yml --profile gpu --profile setup up -d
114+
115+
# CPU only
116+
docker compose -f docker-compose.ollama.yml --profile cpu --profile setup up -d
117+
```
118+
119+
Zusätzliche Modelle herunterladen:
120+
121+
```bash
122+
docker compose -f docker-compose.ollama.yml exec ollama ollama pull llama3.2
123+
```
124+
125+
### Externes Ollama
126+
127+
Wenn Ollama auf Ihrem Host-Rechner läuft (nicht in Docker):
128+
129+
```bash
130+
# macOS/Windows
131+
OLLAMA_URL=http://host.docker.internal:11434 docker compose -f docker-compose.prod.yml up -d
132+
133+
# Linux - use your host IP
134+
OLLAMA_URL=http://192.168.1.100:11434 docker compose -f docker-compose.prod.yml up -d
135+
```
136+
137+
<Callout type="warning">
138+
Innerhalb von Docker bezieht sich `localhost` auf den Container, nicht auf Ihren Host. Verwenden Sie `host.docker.internal` oder die IP-Adresse Ihres Hosts.
139+
</Callout>
140+
141+
## Befehle
142+
143+
```bash
144+
# View logs
145+
docker compose -f docker-compose.prod.yml logs -f simstudio
146+
147+
# Stop
148+
docker compose -f docker-compose.prod.yml down
149+
150+
# Update
151+
docker compose -f docker-compose.prod.yml pull && docker compose -f docker-compose.prod.yml up -d
152+
153+
# Backup database
154+
docker compose -f docker-compose.prod.yml exec db pg_dump -U postgres simstudio > backup.sql
155+
```
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
title: Umgebungsvariablen
3+
description: Konfigurationsreferenz für Sim Studio
4+
---
5+
6+
import { Callout } from 'fumadocs-ui/components/callout'
7+
8+
## Erforderlich
9+
10+
| Variable | Beschreibung |
11+
|----------|-------------|
12+
| `DATABASE_URL` | PostgreSQL-Verbindungszeichenfolge |
13+
| `BETTER_AUTH_SECRET` | Auth-Secret (32 Hex-Zeichen): `openssl rand -hex 32` |
14+
| `BETTER_AUTH_URL` | Ihre App-URL |
15+
| `ENCRYPTION_KEY` | Verschlüsselungsschlüssel (32 Hex-Zeichen): `openssl rand -hex 32` |
16+
| `INTERNAL_API_SECRET` | Internes API-Secret (32 Hex-Zeichen): `openssl rand -hex 32` |
17+
| `NEXT_PUBLIC_APP_URL` | Öffentliche App-URL |
18+
| `NEXT_PUBLIC_SOCKET_URL` | WebSocket-URL (Standard: `http://localhost:3002`) |
19+
20+
## KI-Anbieter
21+
22+
| Variable | Anbieter |
23+
|----------|----------|
24+
| `OPENAI_API_KEY` | OpenAI |
25+
| `ANTHROPIC_API_KEY_1` | Anthropic Claude |
26+
| `GEMINI_API_KEY_1` | Google Gemini |
27+
| `MISTRAL_API_KEY` | Mistral |
28+
| `OLLAMA_URL` | Ollama (Standard: `http://localhost:11434`) |
29+
30+
<Callout type="info">
31+
Für Lastausgleich fügen Sie mehrere Schlüssel mit den Suffixen `_1`, `_2`, `_3` hinzu (z.B. `OPENAI_API_KEY_1`, `OPENAI_API_KEY_2`). Funktioniert mit OpenAI, Anthropic und Gemini.
32+
</Callout>
33+
34+
<Callout type="info">
35+
In Docker verwenden Sie `OLLAMA_URL=http://host.docker.internal:11434` für Ollama auf dem Host-System.
36+
</Callout>
37+
38+
### Azure OpenAI
39+
40+
| Variable | Beschreibung |
41+
|----------|-------------|
42+
| `AZURE_OPENAI_API_KEY` | Azure OpenAI API-Schlüssel |
43+
| `AZURE_OPENAI_ENDPOINT` | Azure OpenAI Endpoint-URL |
44+
| `AZURE_OPENAI_API_VERSION` | API-Version (z.B. `2024-02-15-preview`) |
45+
46+
### vLLM (Selbst-gehostet)
47+
48+
| Variable | Beschreibung |
49+
|----------|-------------|
50+
| `VLLM_BASE_URL` | vLLM-Server-URL (z.B. `http://localhost:8000/v1`) |
51+
| `VLLM_API_KEY` | Optionaler Bearer-Token für vLLM |
52+
53+
## OAuth-Anbieter
54+
55+
| Variable | Beschreibung |
56+
|----------|-------------|
57+
| `GOOGLE_CLIENT_ID` | Google OAuth Client-ID |
58+
| `GOOGLE_CLIENT_SECRET` | Google OAuth Client-Secret |
59+
| `GITHUB_CLIENT_ID` | GitHub OAuth Client-ID |
60+
| `GITHUB_CLIENT_SECRET` | GitHub OAuth Client-Secret |
61+
62+
## Optional
63+
64+
| Variable | Beschreibung |
65+
|----------|-------------|
66+
| `API_ENCRYPTION_KEY` | Verschlüsselt gespeicherte API-Schlüssel (32 Hex-Zeichen): `openssl rand -hex 32` |
67+
| `COPILOT_API_KEY` | API-Schlüssel für Copilot-Funktionen |
68+
| `ADMIN_API_KEY` | Admin-API-Schlüssel für GitOps-Operationen |
69+
| `RESEND_API_KEY` | E-Mail-Dienst für Benachrichtigungen |
70+
| `ALLOWED_LOGIN_DOMAINS` | Registrierungen auf Domains beschränken (durch Kommas getrennt) |
71+
| `ALLOWED_LOGIN_EMAILS` | Registrierungen auf bestimmte E-Mails beschränken (durch Kommas getrennt) |
72+
| `DISABLE_REGISTRATION` | Auf `true` setzen, um neue Benutzerregistrierungen zu deaktivieren |
73+
74+
## Beispiel .env
75+
76+
```bash
77+
DATABASE_URL=postgresql://postgres:postgres@db:5432/simstudio
78+
BETTER_AUTH_SECRET=<openssl rand -hex 32>
79+
BETTER_AUTH_URL=https://sim.yourdomain.com
80+
ENCRYPTION_KEY=<openssl rand -hex 32>
81+
INTERNAL_API_SECRET=<openssl rand -hex 32>
82+
NEXT_PUBLIC_APP_URL=https://sim.yourdomain.com
83+
NEXT_PUBLIC_SOCKET_URL=https://sim.yourdomain.com
84+
OPENAI_API_KEY=sk-...
85+
```
86+
87+
Siehe `apps/sim/.env.example` für alle Optionen.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: Self-Hosting
3+
description: Stellen Sie Sim Studio auf Ihrer eigenen Infrastruktur bereit
4+
---
5+
6+
import { Card, Cards } from 'fumadocs-ui/components/card'
7+
import { Callout } from 'fumadocs-ui/components/callout'
8+
9+
Stellen Sie Sim Studio auf Ihrer eigenen Infrastruktur mit Docker oder Kubernetes bereit.
10+
11+
## Anforderungen
12+
13+
| Ressource | Minimum | Empfohlen |
14+
|----------|---------|-------------|
15+
| CPU | 2 Kerne | 4+ Kerne |
16+
| RAM | 12 GB | 16+ GB |
17+
| Speicher | 20 GB SSD | 50+ GB SSD |
18+
| Docker | 20.10+ | Neueste Version |
19+
20+
## Schnellstart
21+
22+
```bash
23+
git clone https://github.com/simstudioai/sim.git && cd sim
24+
docker compose -f docker-compose.prod.yml up -d
25+
```
26+
27+
Öffnen Sie [http://localhost:3000](http://localhost:3000)
28+
29+
## Bereitstellungsoptionen
30+
31+
<Cards>
32+
<Card title="Docker" href="/self-hosting/docker">
33+
Bereitstellung mit Docker Compose auf jedem Server
34+
</Card>
35+
<Card title="Kubernetes" href="/self-hosting/kubernetes">
36+
Bereitstellung mit Helm auf Kubernetes-Clustern
37+
</Card>
38+
<Card title="Cloud-Plattformen" href="/self-hosting/platforms">
39+
Anleitungen für Railway, DigitalOcean, AWS, Azure, GCP
40+
</Card>
41+
</Cards>
42+
43+
## Architektur
44+
45+
| Komponente | Port | Beschreibung |
46+
|-----------|------|-------------|
47+
| simstudio | 3000 | Hauptanwendung |
48+
| realtime | 3002 | WebSocket-Server |
49+
| db | 5432 | PostgreSQL mit pgvector |
50+
| migrations | - | Datenbank-Migrationen (werden einmal ausgeführt) |

0 commit comments

Comments
 (0)