Spotter-VM/basic/etc/nginx/nginx.conf

41 lines
1.3 KiB
Nginx Configuration File
Raw Normal View History

2017-12-19 10:09:33 +01:00
user nginx;
worker_processes auto;
2017-12-19 10:09:33 +01:00
pcre_jit on;
error_log /var/log/nginx/error.log warn;
include /etc/nginx/modules/*.conf;
events {
2017-12-19 10:09:33 +01:00
worker_connections 1024;
}
http {
2018-01-02 11:18:47 +01:00
include mime.types;
2017-12-19 10:09:33 +01:00
default_type application/octet-stream;
2017-12-19 10:09:33 +01:00
server_tokens off;
client_max_body_size 100m;
sendfile on;
gzip_vary on;
charset utf-8;
2017-12-19 10:09:33 +01:00
ssl_protocols TLSv1.2;
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
ssl_prefer_server_ciphers on;
ssl_certificate /etc/ssl/certs/services.pem;
ssl_certificate_key /etc/ssl/private/services.key;
ssl_session_cache shared:SSL:1m;
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"';
2017-12-19 10:09:33 +01:00
access_log /var/log/nginx/access.log main;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
2017-12-19 10:09:33 +01:00
include /etc/nginx/conf.d/*.conf;
}