2017-12-19 10:09:33 +01:00
|
|
|
user nginx;
|
2017-09-18 17:50:13 +02:00
|
|
|
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;
|
|
|
|
|
2017-09-18 17:50:13 +02:00
|
|
|
events {
|
2017-12-19 10:09:33 +01:00
|
|
|
worker_connections 1024;
|
2017-09-18 17:50:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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-09-18 17:50:13 +02:00
|
|
|
|
2017-12-19 10:09:33 +01:00
|
|
|
server_tokens off;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
sendfile on;
|
2017-12-19 11:05:09 +01:00
|
|
|
gzip_vary on;
|
2017-12-19 10:09:33 +01:00
|
|
|
|
2017-12-19 11:05:09 +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';
|
2017-09-18 17:50:13 +02:00
|
|
|
ssl_prefer_server_ciphers on;
|
2017-12-19 11:05:09 +01:00
|
|
|
ssl_certificate /etc/ssl/certs/services.pem;
|
|
|
|
ssl_certificate_key /etc/ssl/private/services.key;
|
2017-09-18 17:50:13 +02:00
|
|
|
ssl_session_cache shared:SSL:1m;
|
|
|
|
|
2017-12-19 11:05:09 +01:00
|
|
|
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;
|
2017-09-18 17:50:13 +02:00
|
|
|
|
2018-02-09 14:31:55 +01:00
|
|
|
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;
|
|
|
|
}
|