diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-01 14:23:45 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-01 14:23:45 +0100 |
commit | fa9d2f2873f9d4e544b08f200bbadef26bb59331 (patch) | |
tree | 45548f299e824b5676b24f692da35ce76fb05097 | |
parent | cb2236575fa1fbda53dea0f22f2245abc25780c4 (diff) | |
download | nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar.gz nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar.bz2 nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.tar.xz nixos-fa9d2f2873f9d4e544b08f200bbadef26bb59331.zip |
vidhar: nginx: ...
-rw-r--r-- | hosts/vidhar/default.nix | 4 |
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 | }; |