grafana: Properly proxy websocket connections #119
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -42,6 +42,12 @@ in
 | 
				
			||||||
    forceSSL = true;
 | 
					    forceSSL = true;
 | 
				
			||||||
    useACMEHost = "tlater.net";
 | 
					    useACMEHost = "tlater.net";
 | 
				
			||||||
    enableHSTS = true;
 | 
					    enableHSTS = true;
 | 
				
			||||||
    locations."/".proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
 | 
					    locations = {
 | 
				
			||||||
 | 
					      "/".proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
 | 
				
			||||||
 | 
					      "/api/live" = {
 | 
				
			||||||
 | 
					        proxyWebsockets = true;
 | 
				
			||||||
 | 
					        proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue