{ lib, pkgs, config, ... }: { services.nginx = { enable = true; virtualHosts = { "_default" = { listen = [ { addr = "0.0.0.0"; port = 80; } { addr = "[::]"; port = 80; } ]; serverName = "_"; extraConfig = '' deny all; return 444; ''; }; "pdxdestiny.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS? addSSL = true; root = "/dev/null"; locations."/" = { extraConfig = '' default_type text/html; return 200 '
Welcome to pdxdestiny.com
'; ''; }; }; "fbksdigital.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS? addSSL = true; root = "/dev/null"; locations."/" = { extraConfig = '' return 301 http://fbksdigital.lpages.co/fbksdigital/; ''; }; }; "philippeterson.com" = { enableACME = true; # Enable Let's Encrypt certificate for HTTPS forceSSL = false; # Redirect HTTP to HTTPS? addSSL = true; root = "/etc/pullomatic/com_philippeterson"; locations."~ /.git(/.*)$ " = { extraConfig = '' deny all; return 404; ''; }; locations."/games/atcsim" = { extraConfig = '' return 301 /games/atcsim/; ''; }; locations."~ ^/games/atcsim(/[^/\\s]*)*$" = { extraConfig = '' index index.html index.htm; rewrite ^/games/atcsim/?$ "/index.html" break; rewrite ^/games/atcsim(?