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 = {
|
||||
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" = {
|
||||
listen = [
|
||||
{ addr = "0.0.0.0"; port = 80; }
|
||||
|
|
@ -21,15 +28,12 @@
|
|||
};
|
||||
|
||||
"pdxdestiny.com" = {
|
||||
enableACME = true; # Enable Let's Encrypt certificate for HTTPS
|
||||
forceSSL = false; # Redirect HTTP to HTTPS?
|
||||
enableACME = true;
|
||||
forceSSL = false;
|
||||
addSSL = true;
|
||||
root = pkgs.runCommand "pdxdestiny-web" {} ''
|
||||
mkdir -p $out
|
||||
cp ${./pdxdestiny/index.html} $out/index.html
|
||||
cp ${pkgs.copyPathToStore ./logo.png} $out/logo.png
|
||||
'';
|
||||
root = pdxDestinyRoot;
|
||||
};
|
||||
|
||||
"fbksdigital.com" = {
|
||||
enableACME = true; # Enable Let's Encrypt certificate for HTTPS
|
||||
forceSSL = false; # Redirect HTTP to HTTPS?
|
||||
|
|
|
|||
Loading…
Reference in a new issue