-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
39 lines (30 loc) · 948 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
34
35
36
37
38
39
daemon off;
worker_processes 1;
error_log /app/logs/error.log;
pid /app/logs/nginx.pid;
events {
worker_connections 1024;
}
http {
log_format upstreaminfo '$remote_addr - '
'[$proxy_add_x_forwarded_for] - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" '
'$request_length $request_time $upstream_addr $upstream_response_length $upstream_response_time $upstream_status';
access_log /app/logs/access.log upstreaminfo;
error_log /app/logs/error.log;
server {
gzip on;
listen 80;
server_name 127.0.0.1 localhost;
root /app/src;
include /etc/nginx/mime.types;
location /nginx_status {
stub_status on;
access_log off;
}
location / {
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires off;
try_files $uri $uri/ /index.html;
}
}
}