Fix nekomesh nginx config
This commit is contained in:
		
					parent
					
						
							
								475134a847
							
						
					
				
			
			
				commit
				
					
						4e7f683b61
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -13,14 +13,19 @@
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            addr = "0.0.0.0";
 | 
					            addr = "0.0.0.0";
 | 
				
			||||||
            port = 443;
 | 
					            port = 8443;
 | 
				
			||||||
            ssl = true;
 | 
					            ssl = true;
 | 
				
			||||||
 | 
					            extraParameters = [ "proxy_protocol" ];
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        locations."/" = {
 | 
					        locations."/" = {
 | 
				
			||||||
          proxyPass = "http://unix:/run/anubis/anubis-nekomesh.sock";
 | 
					          proxyPass = "http://unix:/run/anubis/anubis-nekomesh.sock";
 | 
				
			||||||
          proxyWebsockets = true;
 | 
					          proxyWebsockets = true;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					        extraConfig = ''
 | 
				
			||||||
 | 
					          set_real_ip_from 10.202.41.100;
 | 
				
			||||||
 | 
					          real_ip_header proxy_protocol;
 | 
				
			||||||
 | 
					        '';
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue