diff --git a/nixos/server/package-configs/default.nix b/nixos/server/package-configs/default.nix index 39f76ab..3d72d65 100644 --- a/nixos/server/package-configs/default.nix +++ b/nixos/server/package-configs/default.nix @@ -12,6 +12,7 @@ ./gotosocial ./mail-server ./nextcloud + ./phanpy ./postgres ./roundcube ./coturn diff --git a/nixos/server/package-configs/phanpy/default.nix b/nixos/server/package-configs/phanpy/default.nix new file mode 100644 index 0000000..314c1e5 --- /dev/null +++ b/nixos/server/package-configs/phanpy/default.nix @@ -0,0 +1,23 @@ +{ + config, + pkgs, + inputs, + lib, + ... +}: { + services.nginx = { + enable = true; + virtualHosts = { + "phanpy.gladtherescake.eu" = { + root = "${pkgs.phanpy}/lib/node_modules/phanpy/"; + ## Force HTTP redirect to HTTPS + forceSSL = true; + ## LetsEncrypt + enableACME = true; + locations."/" = { + index = "index.html"; + }; + }; + }; + }; +}