enable phanpy webserver

This commit is contained in:
Lillian Violet 2024-04-05 23:42:35 +02:00
parent 0396b58228
commit cfbe33f6e6
2 changed files with 24 additions and 0 deletions

View file

@ -12,6 +12,7 @@
./gotosocial ./gotosocial
./mail-server ./mail-server
./nextcloud ./nextcloud
./phanpy
./postgres ./postgres
./roundcube ./roundcube
./coturn ./coturn

View file

@ -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";
};
};
};
};
}