modified: Dockerfile
deleted: docker-compose.yml renamed: nginx/templates/default.conf.template -> nginx/conf.d/default.conf
This commit is contained in:
56
nginx/conf.d/default.conf
Normal file
56
nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,56 @@
|
||||
# === Bluemap Reverse Proxy Konfiguration ===
|
||||
# Liefert die Bluemap (http://devanturas.net:8100) über den Coolify-Proxy
|
||||
# (HTTPS = map.devanturas.net) als iframe-fähige Karte aus.
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name map.devanturas.net;
|
||||
|
||||
# --- Iframe-Einbettung erlauben ---
|
||||
# CSP frame-ancestors: Welche Seiten dürfen die Karte einbetten?
|
||||
# Für die Produktion auf deine echte(n) Seite(n) einschränken, z.B.:
|
||||
# frame-ancestors https://devanturas.net;
|
||||
add_header Content-Security-Policy "frame-ancestors https://* http://*; upgrade-insecure-requests" always;
|
||||
add_header X-Frame-Options "ALLOWALL" always;
|
||||
|
||||
# Puffer für große Bluemap-Responses
|
||||
client_max_body_size 50m;
|
||||
|
||||
# --- WebSocket / HTTP-Proxy zu Bluemap ---
|
||||
location / {
|
||||
proxy_pass http://devanturas.net:8100;
|
||||
|
||||
# HTTP/1.1 + Upgrade-Header für WebSockets (Live-Karten-Updates)
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# Lange laufende WebSocket-Verbindungen nicht abbrechen
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_send_timeout 3600s;
|
||||
proxy_read_timeout 3600s;
|
||||
|
||||
# Streaming/Puffer für große Datenblöcke (Bluemap)
|
||||
proxy_buffering off;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
}
|
||||
|
||||
# Healthcheck-Endpunkt für Coolify (erwartet 200)
|
||||
location = /health {
|
||||
access_log off;
|
||||
return 200 "ok\n";
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
# Komprimierung (reduziert Bandbreite)
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss image/svg+xml;
|
||||
gzip_min_length 1024;
|
||||
}
|
||||
Reference in New Issue
Block a user