summaryrefslogtreecommitdiff
path: root/user/nginx/nginx.conf
blob: 204d667d5099f69e690d604332f01fac36c53878 (plain) (blame)
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
# This is an example configuration file for nginx, with a number of secure
# defaults specified already.

# The system user that nginx runs under.
user nginx;

# The number of worker processes nginx should have. 'Auto' allows nginx
# to determine for itself; typically this value should be the number of
# cores you wish nginx to use.
worker_processes auto;

# HTTP-specific configuration
http {
	# Default mapping of MIME types to file extensions.
	include mime.types;

	# The default MIME type to use for unknown extensions.
	default_type application/octet-stream;

	# This setting enables gzip-based compression, reducing bandwidth usage.
	gzip on;

	# Global configuration.
	include conf.d/*.conf;

	# Site configuration.
	include sites.d/*.conf;
}