51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
access_log /dev/stdout;
|
|
error_log /dev/stderr;
|
|
|
|
# Increase Timeouts for Long-Running AI Tasks
|
|
proxy_read_timeout 600s;
|
|
proxy_connect_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
send_timeout 600s;
|
|
|
|
# Resolver ist wichtig für Docker
|
|
resolver 127.0.0.11 valid=30s ipv6=off;
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
# Basic Auth wieder aktiviert
|
|
auth_basic "Restricted Access - Local AI Suite";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
|
|
location / {
|
|
proxy_pass http://dashboard:80;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /b2b/ {
|
|
# Der Trailing Slash am Ende ist wichtig!
|
|
proxy_pass http://b2b-app:3002/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
location /market/ {
|
|
# Der Trailing Slash am Ende ist wichtig!
|
|
proxy_pass http://market-frontend:80/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
}
|
|
}
|