Spaces:
Runtime error
Runtime error
# The events block configures the connection handling capabilities of Nginx. | |
events { | |
# The worker_connections directive specifies the maximum number of simultaneous connections | |
# that a single worker process can handle. | |
worker_connections 1024; | |
} | |
# The http block is where you define directives for handling HTTP requests. | |
http { | |
upstream frontend { | |
server frontend:3000; | |
} | |
upstream backend { | |
server backend:5000; | |
} | |
server { | |
listen 80; | |
location / { | |
proxy_pass http://frontend; | |
} | |
location /api/ { | |
proxy_pass http://backend; | |
} | |
} | |
} | |