-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
33 lines (28 loc) · 907 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
events {
worker_connections 1024;
}
http {
# Enables log and error files
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Defines the server listening on port 80 for HTTP requests
server {
listen 80;
# Configuration for the app service
location / {
proxy_pass http://app:5173; # Proxies requests to the app service
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
client_max_body_size 100M; # Allows file uploads up to 100MB
}
location ^~ /log/ {
proxy_pass http://log:8080;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
}
}