Files
frontend/nginx.conf
2025-11-14 01:19:27 +01:00

48 lines
821 B
Nginx Configuration File

worker_processes auto;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Logging
access_log off;
error_log /dev/stderr warn;
# Performance
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
keepalive_requests 1000;
# Compression
gzip off;
server {
listen 7200;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~ ^/api {
proxy_pass http://backend:7080;
}
location ~ ^/mongo {
proxy_pass http://mongo-express:8081;
}
}
}