#60-Added dynamic changing host logic. #73

Merged
3025495 merged 2 commits from #60-Dynamisches-angeben-des-Hostes-für-das-frontend into main 2025-06-15 18:15:07 +02:00

Zum Testen:

bash
# 1. Frontend-Image builden
docker-compose build frontend

# 2. Container mit verschiedenen API-Hosts testen
docker run -d --name test-staging -p 8081:80 -e API_HOST=https://api-staging.example.com project-frontend
docker run -d --name test-prod -p 8082:80 -e API_HOST=https://api.example.com project-frontend

# 3. Logs prüfen - sollte Ersetzungsmeldung zeigen
docker logs test-staging
# Erwartete Ausgabe: "Replacing SECRET_HOST with https://api-staging.example.com"

# 4. Überprüfen, dass Ersetzung funktioniert hat
docker exec test-staging grep -r "api-staging.example.com" /usr/share/nginx/html/ | head -2
docker exec test-staging grep -r "SECRET_HOST" /usr/share/nginx/html/ || echo "Keine gefunden - OK!"

# 5. Im Browser testen 
# PDF hochladen und prüfen
Zum Testen: ``` bash # 1. Frontend-Image builden docker-compose build frontend # 2. Container mit verschiedenen API-Hosts testen docker run -d --name test-staging -p 8081:80 -e API_HOST=https://api-staging.example.com project-frontend docker run -d --name test-prod -p 8082:80 -e API_HOST=https://api.example.com project-frontend # 3. Logs prüfen - sollte Ersetzungsmeldung zeigen docker logs test-staging # Erwartete Ausgabe: "Replacing SECRET_HOST with https://api-staging.example.com" # 4. Überprüfen, dass Ersetzung funktioniert hat docker exec test-staging grep -r "api-staging.example.com" /usr/share/nginx/html/ | head -2 docker exec test-staging grep -r "SECRET_HOST" /usr/share/nginx/html/ || echo "Keine gefunden - OK!" # 5. Im Browser testen # PDF hochladen und prüfen ```
3025495 was assigned by 3019483 2025-06-15 16:56:35 +02:00
3019483 added 1 commit 2025-06-15 16:56:36 +02:00
3019483 changed title from Added dynamic changing host logic. to #60-Added dynamic changing host logic. 2025-06-15 16:56:53 +02:00
Poster
Owner

closes #60

closes #60
3025495 added 1 commit 2025-06-15 18:08:51 +02:00
3025495 merged commit fc900c68d0 into main 2025-06-15 18:15:07 +02:00
3025495 deleted branch #60-Dynamisches-angeben-des-Hostes-für-das-frontend 2025-06-15 18:15:07 +02:00
Sign in to join this conversation.
There is no content yet.