forked from nginxinc/docker-nginx-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
39 lines (32 loc) · 917 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
user nginx;
worker_processes auto;
load_module modules/ngx_http_app_protect_module.so;
error_log /var/log/nginx/error.log debug;
events {
worker_connections 10240;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream app_backend_com {
server 192.168.0.1:8000;
server 192.168.0.1:8001;
}
server {
listen 80;
server_name app.example.com;
proxy_http_version 1.1;
app_protect_enable on;
app_protect_security_log_enable on;
app_protect_security_log "/etc/nginx/custom_log_format.json" syslog:server=127.0.0.1:515;
location / {
client_max_body_size 0;
default_type text/html;
# set your backend here
proxy_pass http://app_backend_com;
proxy_set_header Host $host;
}
}
}