Hosting more stuff. cleaning nginx
This commit is contained in:
parent
8f0db0ff00
commit
033d869951
1 changed files with 25 additions and 8 deletions
|
|
@ -1,4 +1,14 @@
|
|||
{ pkgs, modulesPath, ... }: {
|
||||
{ pkgs, modulesPath, ... }:
|
||||
let
|
||||
withGitBlock = {
|
||||
extraConfig = ''
|
||||
location ~ /\.git {
|
||||
deny all;
|
||||
}
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
|
|
@ -31,18 +41,25 @@
|
|||
recommendedTlsSettings = true;
|
||||
clientMaxBodySize = "500m";
|
||||
virtualHosts = {
|
||||
"dustinswan.com" = {
|
||||
"dustinswan.com" = withGitBlock // {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
serverAliases = [ "www.dustinswan.com" ];
|
||||
root = "/var/www/dustinswan.com";
|
||||
extraConfig = ''
|
||||
location ~ /\.git {
|
||||
deny all;
|
||||
}
|
||||
'';
|
||||
};
|
||||
"git.dustinswan.com" = {
|
||||
"resume.dustinswan.com" = withGitBlock // {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
# serverAliases = [ "www.dustinswan.com" ];
|
||||
root = "/var/www/resume.dustinswan.com";
|
||||
};
|
||||
"swanlabs.org" = withGitBlock // {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
serverAliases = [ "www.swanlabs.org" ];
|
||||
globalRedirect = "dustinswan.com";
|
||||
};
|
||||
"git.dustinswan.com" = withGitBlock // {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue