summaryrefslogtreecommitdiff
path: root/hosts/vidhar/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-01 14:23:45 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-01 14:23:45 +0100
commitfa9d2f2873f9d4e544b08f200bbadef26bb59331 (patch)
tree45548f299e824b5676b24f692da35ce76fb05097 /hosts/vidhar/default.nix
parentcb2236575fa1fbda53dea0f22f2245abc25780c4 (diff)
downloadnixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar
nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar.gz
nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar.bz2
nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar.xz
nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.zip
vidhar: nginx: ...
Diffstat (limited to 'hosts/vidhar/default.nix')
-rw-r--r--hosts/vidhar/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index fc538d4d..01c9dccd 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -122,13 +122,15 @@
122 122
123 services.nginx = { 123 services.nginx = {
124 enable = true; 124 enable = true;
125 recommendedGzipSettings = true;
126 recommendedProxyConfig = true;
125 upstreams.grafana = { 127 upstreams.grafana = {
126 servers = { "unix:${config.services.grafana.socket}" = {}; }; 128 servers = { "unix:${config.services.grafana.socket}" = {}; };
127 }; 129 };
128 virtualHosts = { 130 virtualHosts = {
129 ${config.services.grafana.domain} = { 131 ${config.services.grafana.domain} = {
130 locations."/" = { 132 locations."/" = {
131 proxyPass = "http://grafana"; 133 proxyPass = "http://grafana/";
132 proxyWebsockets = true; 134 proxyWebsockets = true;
133 }; 135 };
134 }; 136 };