diff --git a/drohnenfuehrer/nginx/extra8002.conf b/drohnenfuehrer/nginx/extra8002.conf deleted file mode 100644 index 12f6a81..0000000 --- a/drohnenfuehrer/nginx/extra8002.conf +++ /dev/null @@ -1,73 +0,0 @@ -server { - listen 80; - server_name localhost; - - # Support subpath deployment (/drohnenfuehrer) - location /drohnenfuehrer/api/public/ { - proxy_pass http://backend:5000/api/public/; - 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; - } - - location /drohnenfuehrer/api/ { - proxy_pass http://backend:5000/api/; - 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; - } - - location = /drohnenfuehrer/sw.js { - proxy_pass http://frontend:80/sw.js; - 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; - } - - location /drohnenfuehrer/ { - proxy_pass http://frontend:80/; - 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; - } - - # Proxy specific public API path explicitly (avoid prefix-rewrite issues) - location /api/public/ { - proxy_pass http://backend:5000/api/public/; - 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; - } - - # Also accept requests missing the /api prefix (workaround for client requests) - location /public/ { - proxy_pass http://backend:5000/api/public/; - 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; - } - - # Proxy other API requests to backend (keep /api prefix) - location /api/ { - proxy_pass http://backend:5000/api/; - 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; - } - - # Serve frontend (React) from frontend service - location / { - proxy_pass http://frontend:80; - 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; - } -} diff --git a/drohnenfuehrer/node b/drohnenfuehrer/node deleted file mode 100644 index e69de29..0000000 diff --git a/nachsuche/nginx/extra8002.conf b/nachsuche/nginx/extra8002.conf deleted file mode 100644 index 2757edb..0000000 --- a/nachsuche/nginx/extra8002.conf +++ /dev/null @@ -1,107 +0,0 @@ -server { - listen 80; - server_name localhost; - - client_max_body_size 20M; - - # ────────────────────────────────────────────── - # Portal-Selektor (Webroot: /) - # ────────────────────────────────────────────── - root /usr/share/nginx/html/portal; - - # Never cache sw.js and manifest.json (served from portal root) - location = /sw.js { - add_header Cache-Control "no-cache, no-store, must-revalidate"; - expires 0; - } - - location = /manifest.json { - add_header Cache-Control "no-cache, no-store, must-revalidate"; - expires 0; - } - - # ────────────────────────────────────────────── - # Nachsuche (/nachsuche/) - # ────────────────────────────────────────────── - location /nachsuche/api/ { - proxy_pass http://host.docker.internal:5000/api/; - 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 $http_x_forwarded_proto; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - - location /nachsuche/ { - proxy_pass http://host.docker.internal:8080/; - 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 $http_x_forwarded_proto; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - - # ────────────────────────────────────────────── - # Drohnenführer (/drohnenfuehrer/) - # ────────────────────────────────────────────── - location /drohnenfuehrer/api/ { - proxy_pass http://host.docker.internal:5001/api/; - 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 $http_x_forwarded_proto; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - - location /drohnenfuehrer/ { - proxy_pass http://host.docker.internal:8081/; - 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 $http_x_forwarded_proto; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - - # ────────────────────────────────────────────── - # Stöberhunde (/stoeberhunde/) - # ────────────────────────────────────────────── - location /stoeberhunde/api/ { - proxy_pass http://host.docker.internal:5002/api/; - 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 $http_x_forwarded_proto; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - - location /stoeberhunde/ { - proxy_pass http://host.docker.internal:8082/; - 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 $http_x_forwarded_proto; - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - - # ────────────────────────────────────────────── - # Portal-Selektor catch-all (index.html) - # ────────────────────────────────────────────── - location / { - try_files $uri $uri/ /index.html; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - expires 0; - } -} - diff --git a/nachsuche/node b/nachsuche/node deleted file mode 100644 index e69de29..0000000 diff --git a/stoeberhunde/nginx/extra8002.conf b/stoeberhunde/nginx/extra8002.conf deleted file mode 100644 index 4c8d0c6..0000000 --- a/stoeberhunde/nginx/extra8002.conf +++ /dev/null @@ -1,73 +0,0 @@ -server { - listen 80; - server_name localhost; - - # Support subpath deployment (/stoeberhunde) - location /stoeberhunde/api/public/ { - proxy_pass http://backend:5000/api/public/; - 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; - } - - location /stoeberhunde/api/ { - proxy_pass http://backend:5000/api/; - 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; - } - - location = /stoeberhunde/sw.js { - proxy_pass http://frontend:80/sw.js; - 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; - } - - location /stoeberhunde/ { - proxy_pass http://frontend:80/; - 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; - } - - # Proxy specific public API path explicitly (avoid prefix-rewrite issues) - location /api/public/ { - proxy_pass http://backend:5000/api/public/; - 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; - } - - # Also accept requests missing the /api prefix (workaround for client requests) - location /public/ { - proxy_pass http://backend:5000/api/public/; - 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; - } - - # Proxy other API requests to backend (keep /api prefix) - location /api/ { - proxy_pass http://backend:5000/api/; - 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; - } - - # Serve frontend (React) from frontend service - location / { - proxy_pass http://frontend:80; - 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; - } -} diff --git a/stoeberhunde/node b/stoeberhunde/node deleted file mode 100644 index e69de29..0000000