-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
58 lines (46 loc) · 2.19 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Generated by nginxconfig.io
# https://www.digitalocean.com/community/tools/nginx?domains.0.server.domain=example.com&domains.0.server.path=%2Fvar%2Fwww%2Fexample.com&domains.0.server.redirectSubdomains=false&domains.0.https.https=false&domains.0.php.php=false&domains.0.reverseProxy.reverseProxy=true&domains.0.reverseProxy.proxyPass=http%3A%2F%2F127.0.0.1%3A4000&domains.0.routing.root=false&domains.0.logging.accessLog=true&domains.0.logging.errorLog=true&global.security.referrerPolicy=no-referrer&global.security.contentSecurityPolicy=frame-ancestors%20%27none%27&global.performance.brotliCompression=true&global.logging.cloudflare=true&global.logging.cfConnectingIp=false&global.logging.cfIpCountry=true&global.docker.dockerfile=true&global.docker.dockerCompose=true
user www-data;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 65535;
events {
multi_accept on;
worker_connections 65535;
}
http {
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
log_not_found off;
types_hash_max_size 2048;
client_max_body_size 16M;
# MIME
include mime.types;
default_type application/octet-stream;
# Log Format
log_format cloudflare '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $http_cf_ray $http_cf_ipcountry';
# Logging
access_log /var/log/nginx/access.log cloudflare;
error_log /var/log/nginx/error.log warn;
# Load configs
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
##
# SSL Settings
##
ssl_protocols TLSv1.2; # Dropping SSLv3 and TLS 1.0, 1.1, ref: POODLE, BEAST, CRIME
ssl_prefer_server_ciphers on;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
}