2016-08-16 08:48:34 +00:00
|
|
|
pid tmp/{{"{{"}}GIN_ENV{{"}}"}}-nginx.pid;
|
|
|
|
|
|
|
|
# This number should be at maxium the number of CPU on the server
|
|
|
|
worker_processes 4;
|
|
|
|
#daemon off;
|
|
|
|
|
|
|
|
events {
|
|
|
|
# Number of connections per worker
|
|
|
|
worker_connections 4096;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
# use sendfile
|
|
|
|
sendfile on;
|
|
|
|
|
|
|
|
# Gin initialization
|
|
|
|
{{"{{"}}GIN_INIT{{"}}"}}
|
|
|
|
|
|
|
|
server {
|
|
|
|
# List port
|
2017-09-11 09:15:17 +00:00
|
|
|
listen {{"{{"}}GIN_PORT{{"}}"}};
|
2016-08-16 12:48:18 +00:00
|
|
|
|
2016-08-16 08:48:34 +00:00
|
|
|
keepalive_timeout 70;
|
|
|
|
|
|
|
|
# Access log with buffer, or disable it completetely if unneeded
|
|
|
|
access_log logs/{{"{{"}}GIN_ENV{{"}}"}}-access.log combined buffer=16k;
|
|
|
|
# access_log off;
|
|
|
|
|
|
|
|
# Error log
|
|
|
|
error_log logs/{{"{{"}}GIN_ENV{{"}}"}}-error.log debug;
|
|
|
|
|
|
|
|
# Gin runtime
|
|
|
|
{{"{{"}}GIN_RUNTIME{{"}}"}}
|
|
|
|
}
|
2016-10-31 09:51:43 +00:00
|
|
|
}
|