diff --git a/hosts/cube/microbin.nix b/hosts/cube/microbin.nix deleted file mode 100644 index ee233d7..0000000 --- a/hosts/cube/microbin.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ config, lib, ulib, ... }: with ulib; - -let - inherit (config.networking) domain; - - fqdn = "paste.${domain}"; - port = 4778; -in serverSystemConfiguration { - services.nginx.virtualHosts.${fqdn} = { - forceSSL = true; - useACMEHost = domain; - - locations."/".proxyPass = "http://[::1]:${toString port}/"; - }; - - services.microbin = enabled { - passwordFile = config.age.secrets."cube.microbin.password".path; - - settings = lib.mapAttrs' (name: value: lib.nameValuePair "MICROBIN_${lib.toUpper name}" (toString value)) { - inherit port; - - bind = "::1"; - - title = "Paste - RGBCube"; - - hide_footer = true; - hide_header = true; - hide_logo = true; - - no_file_upload = true; - no_listing = true; - - hash_ids = true; - public_path = "https://${fqdn}/"; - qr = true; - - enable_burn_after = true; - - disable_telemetry = true; - disable_update_checking = true; - }; - }; -} diff --git a/secrets/cube.microbin.password.age b/secrets/cube.microbin.password.age deleted file mode 100644 index c6feaa5..0000000 --- a/secrets/cube.microbin.password.age +++ /dev/null @@ -1,5 +0,0 @@ -age-encryption.org/v1 --> ssh-ed25519 +rZ0Tw ermFdlm4jBfWILyxN7Mu07sheVp6Kg46ho9pAk9O73s -nF+GEyxxl8pNd5M/TKM05cbhIX2Wuyi0+o+qSRcqW1o ---- zPRSl0ZRMz2TTpy7MdIwzg/Q46sysY2MqTNihWycctY -z'}ң5Er'Tg]7 |ż@YuMJSVùܴ9$N8ϼp \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index d3b465f..10cad13 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -7,7 +7,6 @@ rec { "acme.age".publicKeys = [ keys.cube ]; "cube.password.hash.age".publicKeys = [ keys.cube ]; "cube.mail.password.hash.age".publicKeys = [ keys.cube ]; - "cube.microbin.password.age".publicKeys = [ keys.cube ]; "cube.id.age".publicKeys = [ keys.rgbcube ]; "enka.said.password.hash.age".publicKeys = [ keys.rgbcube ]; "enka.orhan.password.hash.age".publicKeys = [ keys.rgbcube ];