{ config, inputs, ... }: let domain = "bin.hauleth.dev"; port = "6701"; cfg = config.services.ubin; in { imports = [ inputs.ubin.nixosModules.default ]; logs.services = [ "ubin" ]; services.ubin = { enable = false; host = domain; listen = "127.0.0.1:${port}"; schema = "https"; }; # services.nginx.virtualHosts.${domain} = { # forceSSL = true; # enableACME = true; # # locations."/" = { # root = cfg.storage; # proxyPass = "http://127.0.0.1:${port}/"; # # extraConfig = '' # satisfy any; # # limit_except GET { # auth_basic "ubin paste"; # auth_basic_user_file /run/credentials/nginx.service/httpasswd; # } # ''; # }; # }; }