hai world

This commit is contained in:
Mork Swork 2026-02-16 12:29:18 -08:00
parent cf38d6fc59
commit 6d6dcd818c

View file

@ -7,7 +7,14 @@
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts = { virtualHosts = let
pdxDestinyRoot = pkgs.runCommand "pdxdestiny-web" {} ''
mkdir -p $out
cp ${./pdxdestiny/index.html} $out/index.html
cp ${pkgs.copyPathToStore ./logo.png} $out/logo.png
'';
in
{
"_default" = { "_default" = {
listen = [ listen = [
{ addr = "0.0.0.0"; port = 80; } { addr = "0.0.0.0"; port = 80; }
@ -21,15 +28,12 @@
}; };
"pdxdestiny.com" = { "pdxdestiny.com" = {
enableACME = true; # Enable Let's Encrypt certificate for HTTPS enableACME = true;
forceSSL = false; # Redirect HTTP to HTTPS? forceSSL = false;
addSSL = true; addSSL = true;
root = pkgs.runCommand "pdxdestiny-web" {} '' root = pdxDestinyRoot;
mkdir -p $out
cp ${./pdxdestiny/index.html} $out/index.html
cp ${pkgs.copyPathToStore ./logo.png} $out/logo.png
'';
}; };
"fbksdigital.com" = { "fbksdigital.com" = {
enableACME = true; # Enable Let's Encrypt certificate for HTTPS enableACME = true; # Enable Let's Encrypt certificate for HTTPS
forceSSL = false; # Redirect HTTP to HTTPS? forceSSL = false; # Redirect HTTP to HTTPS?