enable phanpy webserver
This commit is contained in:
parent
0396b58228
commit
cfbe33f6e6
|
@ -12,6 +12,7 @@
|
|||
./gotosocial
|
||||
./mail-server
|
||||
./nextcloud
|
||||
./phanpy
|
||||
./postgres
|
||||
./roundcube
|
||||
./coturn
|
||||
|
|
23
nixos/server/package-configs/phanpy/default.nix
Normal file
23
nixos/server/package-configs/phanpy/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue