-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
29 lines (28 loc) · 760 Bytes
/
nginx.conf
File metadata and controls
29 lines (28 loc) · 760 Bytes
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
worker_processes 1;
# TODO: check if need nest line
# daemon off;
error_log /dev/stdout;
events { worker_connections 1024; }
http {
include mime.types;
server {
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
gzip_static on;
access_log /dev/stdout;
# all requests except '/api' will handle in the client container
location / {
try_files $uri $uri/ /index.html;
}
# #each request to /api will pass to the middleware container
# location /api {
# proxy_pass <api>;
# }
#let max file size up to 5M
client_max_body_size 5M;
#hide server info
server_tokens off;
}
}