fix: ai compose tailscale dns

This commit is contained in:
2025-11-28 08:21:23 +01:00
parent f4dd7c7d9d
commit 6d0a15a969
2 changed files with 10 additions and 15 deletions

View File

@@ -96,6 +96,8 @@ services:
image: ghcr.io/berriai/litellm:main-latest image: ghcr.io/berriai/litellm:main-latest
container_name: ${AI_COMPOSE_PROJECT_NAME}_litellm container_name: ${AI_COMPOSE_PROJECT_NAME}_litellm
restart: unless-stopped restart: unless-stopped
dns:
- 100.100.100.100 # Tailscale's MagicDNS resolver
environment: environment:
TZ: ${TIMEZONE:-Europe/Berlin} TZ: ${TIMEZONE:-Europe/Berlin}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY} ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
@@ -186,6 +188,8 @@ services:
image: nginx:alpine image: nginx:alpine
container_name: ${AI_COMPOSE_PROJECT_NAME}_comfyui container_name: ${AI_COMPOSE_PROJECT_NAME}_comfyui
restart: unless-stopped restart: unless-stopped
dns:
- 100.100.100.100 # Tailscale's MagicDNS resolver
environment: environment:
TZ: ${TIMEZONE:-Europe/Berlin} TZ: ${TIMEZONE:-Europe/Berlin}
GPU_SERVICE_HOST: ${GPU_TAILSCALE_HOST} GPU_SERVICE_HOST: ${GPU_TAILSCALE_HOST}
@@ -218,6 +222,8 @@ services:
image: nginx:alpine image: nginx:alpine
container_name: ${AI_COMPOSE_PROJECT_NAME}_audiocraft container_name: ${AI_COMPOSE_PROJECT_NAME}_audiocraft
restart: unless-stopped restart: unless-stopped
dns:
- 100.100.100.100 # Tailscale's MagicDNS resolver
environment: environment:
TZ: ${TIMEZONE:-Europe/Berlin} TZ: ${TIMEZONE:-Europe/Berlin}
GPU_SERVICE_HOST: ${GPU_TAILSCALE_HOST} GPU_SERVICE_HOST: ${GPU_TAILSCALE_HOST}
@@ -250,6 +256,8 @@ services:
image: nginx:alpine image: nginx:alpine
container_name: ${AI_COMPOSE_PROJECT_NAME}_upscale container_name: ${AI_COMPOSE_PROJECT_NAME}_upscale
restart: unless-stopped restart: unless-stopped
dns:
- 100.100.100.100 # Tailscale's MagicDNS resolver
environment: environment:
TZ: ${TIMEZONE:-Europe/Berlin} TZ: ${TIMEZONE:-Europe/Berlin}
GPU_SERVICE_HOST: ${GPU_TAILSCALE_HOST} GPU_SERVICE_HOST: ${GPU_TAILSCALE_HOST}
@@ -283,6 +291,8 @@ services:
image: dev.pivoine.art/valknar/supervisor-ui:latest image: dev.pivoine.art/valknar/supervisor-ui:latest
container_name: ${AI_COMPOSE_PROJECT_NAME}_supervisor_ui container_name: ${AI_COMPOSE_PROJECT_NAME}_supervisor_ui
restart: unless-stopped restart: unless-stopped
dns:
- 100.100.100.100 # Tailscale's MagicDNS resolver
environment: environment:
TZ: ${TIMEZONE:-Europe/Berlin} TZ: ${TIMEZONE:-Europe/Berlin}
NODE_ENV: production NODE_ENV: production

View File

@@ -32,21 +32,6 @@ http {
# Increase client body size for image uploads # Increase client body size for image uploads
client_max_body_size 100M; client_max_body_size 100M;
# Audio files - fix Content-Type for browser playback
location ~ \.wav$ {
proxy_pass http://${GPU_SERVICE_HOST}:${GPU_SERVICE_PORT};
proxy_hide_header Content-Type;
add_header Content-Type "audio/wav";
proxy_hide_header Content-Disposition;
}
location ~ \.mp3$ {
proxy_pass http://${GPU_SERVICE_HOST}:${GPU_SERVICE_PORT};
proxy_hide_header Content-Type;
add_header Content-Type "audio/mpeg";
proxy_hide_header Content-Disposition;
}
location / { location / {
# Proxy to service on RunPod via Tailscale # Proxy to service on RunPod via Tailscale
proxy_pass http://${GPU_SERVICE_HOST}:${GPU_SERVICE_PORT}; proxy_pass http://${GPU_SERVICE_HOST}:${GPU_SERVICE_PORT};