diff options
author | lassulus <lassulus@lassul.us> | 2019-12-02 15:57:25 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-12-02 15:57:25 +0100 |
commit | f33c977511d3bac5dbf2c6c6e84a1e508ca4aeb1 (patch) | |
tree | b8af5fbe6cef7db06af2c56686121b779d2be0a0 /lass/1systems | |
parent | 79fce4068fb939077f2430baa27e6e55c9f65726 (diff) |
l prism.r: add flix endpoint
Diffstat (limited to 'lass/1systems')
-rw-r--r-- | lass/1systems/prism/config.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lass/1systems/prism/config.nix b/lass/1systems/prism/config.nix index e7330c359..9028843dd 100644 --- a/lass/1systems/prism/config.nix +++ b/lass/1systems/prism/config.nix @@ -338,6 +338,19 @@ with import <stockholm/lib>; localAddress = "10.233.2.14"; }; + services.nginx.virtualHosts."lassul.us".locations."^~ /flix/".extraConfig = '' + if ($scheme != "https") { + rewrite ^ https://$host$request_uri permanent; + } + auth_basic "Restricted Content"; + auth_basic_user_file ${pkgs.writeText "flix-user-pass" '' + krebs:$apr1$1Fwt/4T0$YwcUn3OBmtmsGiEPlYWyq0 + ''}; + proxy_pass http://10.233.2.14:80/; + proxy_set_header Accept-Encoding ""; + sub_filter "https://lassul.us/" "https://lassul.us/flix/"; + sub_filter_once off; + ''; services.nginx.virtualHosts."lassul.us".locations."^~ /transmission".extraConfig = '' if ($scheme != "https") { rewrite ^ https://$host$request_uri permanent; |