mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-07-01 21:05:49 +02:00
35 lines
808 B
Nginx Configuration File
35 lines
808 B
Nginx Configuration File
|
|
user nginx;
|
|
worker_processes auto;
|
|
|
|
error_log /var/log/nginx/error.log notice;
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
log_format main 'no ip - [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
map $request_method $limit {
|
|
default "";
|
|
POST $binary_remote_addr;
|
|
}
|
|
|
|
limit_req_zone $binary_remote_addr zone=one_per_second:20m rate=1r/s;
|
|
limit_req_zone $binary_remote_addr zone=one_per_minute:20m rate=1r/m;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
} |