mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 23:33:34 +00:00 
			
		
		
		
	* Fix wrapping when too many hosts are shown (#207) * Update npm packages, fixes CVE-2019-10757 * Revert some breaking packages * Major overhaul - Docker buildx support in CI - Cypress API Testing in CI - Restructured folder layout (insert clean face meme) - Added Swagger documentation and validate API against that (to be completed) - Use common base image for all supported archs, which includes updated nginx with ipv6 support - Updated certbot and changes required for it - Large amount of Hosts names will wrap in UI - Updated packages for frontend - Version bump 2.1.0 * Updated documentation * Fix JWT expire time going crazy. Now set to 1day * Backend JS formatting rules * Remove v1 importer, I doubt anyone is using v1 anymore * Added backend formatting rules and enforce them in Jenkins builds * Fix CI, doesn't need a tty * Thanks bcrypt. Why can't you just be normal. * Cleanup after syntax check Co-authored-by: Marcelo Castagna <margaale@users.noreply.github.com>
		
			
				
	
	
		
			85 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Nginx Configuration File
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Nginx Configuration File
		
	
	
	
	
	
| # run nginx in foreground
 | |
| daemon off;
 | |
| 
 | |
| user root;
 | |
| 
 | |
| # Set number of worker processes automatically based on number of CPU cores.
 | |
| worker_processes auto;
 | |
| 
 | |
| # Enables the use of JIT for regular expressions to speed-up their processing.
 | |
| pcre_jit on;
 | |
| 
 | |
| error_log /data/logs/error.log warn;
 | |
| 
 | |
| # Includes files with directives to load dynamic modules.
 | |
| include /etc/nginx/modules/*.conf;
 | |
| 
 | |
| events {
 | |
| 	worker_connections  1024;
 | |
| }
 | |
| 
 | |
| http {
 | |
| 	include                       /etc/nginx/mime.types;
 | |
| 	default_type                  application/octet-stream;
 | |
| 	sendfile                      on;
 | |
| 	server_tokens                 off;
 | |
| 	tcp_nopush                    on;
 | |
| 	tcp_nodelay                   on;
 | |
| 	client_body_temp_path         /tmp/nginx/body 1 2;
 | |
| 	keepalive_timeout             65;
 | |
| 	ssl_prefer_server_ciphers     on;
 | |
| 	gzip                          on;
 | |
| 	proxy_ignore_client_abort     off;
 | |
| 	client_max_body_size          2000m;
 | |
| 	server_names_hash_bucket_size 64;
 | |
| 	proxy_http_version            1.1;
 | |
| 	proxy_set_header              X-Forwarded-Scheme $scheme;
 | |
| 	proxy_set_header              X-Forwarded-For $proxy_add_x_forwarded_for;
 | |
| 	proxy_set_header              Accept-Encoding "";
 | |
| 	proxy_cache                   off;
 | |
| 	proxy_cache_path              /var/lib/nginx/cache/public  levels=1:2 keys_zone=public-cache:30m max_size=192m;
 | |
| 	proxy_cache_path              /var/lib/nginx/cache/private levels=1:2 keys_zone=private-cache:5m max_size=1024m;
 | |
| 
 | |
| 	log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"';
 | |
| 	log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"';
 | |
| 
 | |
| 
 | |
| 	access_log /data/logs/default.log proxy;
 | |
| 
 | |
| 	# Dynamically generated resolvers file
 | |
| 	include /etc/nginx/conf.d/include/resolvers.conf;
 | |
| 
 | |
| 	# Default upstream scheme
 | |
| 	map $host $forward_scheme {
 | |
| 		default http;
 | |
| 	}
 | |
| 
 | |
| 	# Real IP Determination
 | |
| 	# Docker subnet:
 | |
| 	set_real_ip_from 172.0.0.0/8;
 | |
| 	# NPM generated CDN ip ranges:
 | |
| 	include conf.d/include/ip_ranges.conf;
 | |
| 	# always put the following 2 lines after ip subnets:
 | |
| 	real_ip_header X-Forwarded-For;
 | |
| 	real_ip_recursive on;
 | |
| 
 | |
| 	# Files generated by NPM
 | |
| 	include /etc/nginx/conf.d/*.conf;
 | |
| 	include /data/nginx/default_host/*.conf;
 | |
| 	include /data/nginx/proxy_host/*.conf;
 | |
| 	include /data/nginx/redirection_host/*.conf;
 | |
| 	include /data/nginx/dead_host/*.conf;
 | |
| 	include /data/nginx/temp/*.conf;
 | |
| 
 | |
| 	# Custom
 | |
| 	include /data/nginx/custom/http[.]conf;
 | |
| }
 | |
| 
 | |
| stream {
 | |
| 	# Files generated by NPM
 | |
| 	include /data/nginx/stream/*.conf;
 | |
| }
 | |
| 
 | |
| # Custom
 | |
| include /data/nginx/custom/root[.]conf;
 |