diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-14 17:08:46 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-14 17:08:46 +0100 |
commit | 34fe6cb58ecd1f1421154ca91a1a7fd0de27f6f8 (patch) | |
tree | 349a37c1e8806d25f491ed338e81cdd2162b6e2e | |
parent | e65779e2948a27d5c3aa7cf268eb28ff6b4723e8 (diff) | |
download | nixos-34fe6cb58ecd1f1421154ca91a1a7fd0de27f6f8.tar nixos-34fe6cb58ecd1f1421154ca91a1a7fd0de27f6f8.tar.gz nixos-34fe6cb58ecd1f1421154ca91a1a7fd0de27f6f8.tar.bz2 nixos-34fe6cb58ecd1f1421154ca91a1a7fd0de27f6f8.tar.xz nixos-34fe6cb58ecd1f1421154ca91a1a7fd0de27f6f8.zip |
...
-rw-r--r-- | odin.nix | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -479,12 +479,12 @@ | |||
479 | ''; | 479 | ''; |
480 | }; | 480 | }; |
481 | 481 | ||
482 | services.bar = { | 482 | # services.bar = { |
483 | enable = true; | 483 | # enable = true; |
484 | port = 8082; | 484 | # port = 8082; |
485 | approot = "/bar"; | 485 | # approot = "/bar"; |
486 | ipFromHeader = true; | 486 | # ipFromHeader = true; |
487 | }; | 487 | # }; |
488 | 488 | ||
489 | services.nginx = { | 489 | services.nginx = { |
490 | enable = true; | 490 | enable = true; |
@@ -501,7 +501,7 @@ | |||
501 | sslCertificateKey = "/var/lib/ssl/self-signed-key.pem"; | 501 | sslCertificateKey = "/var/lib/ssl/self-signed-key.pem"; |
502 | 502 | ||
503 | locations = { | 503 | locations = { |
504 | "/bar".proxyPass = "http://bar/"; | 504 | # "/bar".proxyPass = "http://bar/"; |
505 | "/" = { | 505 | "/" = { |
506 | root = "/srv/media/"; | 506 | root = "/srv/media/"; |
507 | extraConfig = '' | 507 | extraConfig = '' |
@@ -525,9 +525,9 @@ | |||
525 | }; | 525 | }; |
526 | 526 | ||
527 | upstreams = { | 527 | upstreams = { |
528 | "bar" = { | 528 | # "bar" = { |
529 | servers."localhost:${toString config.services.bar.port}"= {}; | 529 | # servers."localhost:${toString config.services.bar.port}"= {}; |
530 | }; | 530 | # }; |
531 | "prometheus" = { | 531 | "prometheus" = { |
532 | servers."${config.services.prometheus2.listenAddress}" = {}; | 532 | servers."${config.services.prometheus2.listenAddress}" = {}; |
533 | }; | 533 | }; |