Add nginx config for stortissvatnet.no
This commit is contained in:
parent
4f62dbd3fc
commit
97c06afbf7
1 changed files with 18 additions and 4 deletions
|
@ -1,12 +1,20 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [ nginx ];
|
environment.systemPackages = with pkgs; [ nginx ];
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
services.nginx.virtualHosts."polsevev.dev" = {
|
services.nginx.virtualHosts = {
|
||||||
useACMEHost = "polsevev.dev";
|
"polsevev.dev" = {
|
||||||
forceSSL = true;
|
useACMEHost = "polsevev.dev";
|
||||||
root = "/var/www/polsevev/dist";
|
forceSSL = true;
|
||||||
|
root = "/var/www/polsevev/dist";
|
||||||
|
};
|
||||||
|
"stortissvatnet.no" = {
|
||||||
|
useACMEHost = "stortissvatnet.no";
|
||||||
|
forceSSL = true;
|
||||||
|
root = "/var/www/stortissvatnet";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "rolf.martin@glomsrud.no";
|
defaults.email = "rolf.martin@glomsrud.no";
|
||||||
|
@ -17,6 +25,12 @@
|
||||||
environmentFile = /cloudflare.env;
|
environmentFile = /cloudflare.env;
|
||||||
group = config.services.nginx.group;
|
group = config.services.nginx.group;
|
||||||
};
|
};
|
||||||
|
"stortissvatnet.no" = {
|
||||||
|
domain = "stortissvatnet.no";
|
||||||
|
dnsProvider = "cloudflare";
|
||||||
|
environmentFile = /cloudflare.env;
|
||||||
|
group = config.services.nginx.group;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue