Increase worker_connections and set worker_processes to auto
This commit is contained in:
		
					parent
					
						
							
								f0368c9a61
							
						
					
				
			
			
				commit
				
					
						67c5a733ab
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -7,6 +7,10 @@
 | 
			
		|||
  services.nginx = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
 | 
			
		||||
    eventsConfig = ''
 | 
			
		||||
      worker_connections 1024;
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
    streamConfig = ''
 | 
			
		||||
      map $ssl_preread_server_name $address {
 | 
			
		||||
        anisync.grzb.de 127.0.0.1:8443;
 | 
			
		||||
| 
						 | 
				
			
			@ -33,6 +37,10 @@
 | 
			
		|||
      }
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
    appendConfig = ''
 | 
			
		||||
      worker_processes auto;
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
    appendHttpConfig = ''
 | 
			
		||||
      add_header Strict-Transport-Security "max-age=63072000" always;
 | 
			
		||||
    '';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue