Add reverse proxy
This commit is contained in:
parent
f8405bf012
commit
378f2d9882
@ -123,6 +123,11 @@
|
|||||||
backup = { };
|
backup = { };
|
||||||
binary_sensor = [ ];
|
binary_sensor = [ ];
|
||||||
default_config = { };
|
default_config = { };
|
||||||
|
http = {
|
||||||
|
server_host = "::1";
|
||||||
|
trusted_proxies = [ "::1" ];
|
||||||
|
use_x_forwarded_for = true;
|
||||||
|
};
|
||||||
ffmpeg = { };
|
ffmpeg = { };
|
||||||
homeassistant = {
|
homeassistant = {
|
||||||
name = "Home";
|
name = "Home";
|
||||||
@ -366,7 +371,17 @@
|
|||||||
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
|
||||||
mushroom
|
mushroom
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."home.mesh.vimium.net" = {
|
||||||
|
forceSSL = false;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://[::1]:8123";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mosquitto = {
|
services.mosquitto = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user