hai world
This commit is contained in:
parent
cf38d6fc59
commit
6d6dcd818c
1 changed files with 14 additions and 10 deletions
|
|
@ -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?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue