-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
29 lines (26 loc) · 965 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
user www;
worker_processes auto; # it will be determinate automatically by the number of core
error_log /var/log/nginx/error.log warn;
#pid /var/run/nginx/nginx.pid; # it permit you to use /etc/init.d/nginx reload|restart|stop|start
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log /var/log/nginx/access.log;
keepalive_timeout 3000;
server {
listen 41185;
client_max_body_size 2048M;
location / {
set $delimeter "";
if ($is_args) {
set $delimeter "&";
}
set $args "$args${delimeter}token=__TOKEN__";
proxy_pass http://localhost:41184;
}
}
}