It seems this now gets added automatically, and causes nginx to fail with an emergency due to the directive being there two times. Drop one of it, which gets nginx to boot up again. Change-Id: I0df3c2f7c2cfbe23d717249570d5a4d1a7fe2f2b Reviewed-on: https://cl.snix.dev/c/snix/+/30363 Autosubmit: Florian Klink <flokli@flokli.de> Tested-by: besadii Reviewed-by: Ryan Lahfa <masterancpp@gmail.com>
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			455 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			455 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, ... }:
 | |
| {
 | |
|   imports = [
 | |
|     ./base.nix
 | |
|   ];
 | |
| 
 | |
|   services.nginx = {
 | |
|     upstreams.tempo = {
 | |
|       servers."${config.services.tempo.settings.distributor.receivers.otlp.protocols.http.endpoint}" = { };
 | |
|     };
 | |
| 
 | |
|     virtualHosts."tempo.snix.dev" = {
 | |
|       enableACME = true;
 | |
|       forceSSL = true;
 | |
|       locations."/" = {
 | |
|         proxyPass = "http://tempo";
 | |
|         basicAuthFile = config.age.secrets.metrics-push-htpasswd.path;
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |