Add nginx config for stortissvatnet.no
This commit is contained in:
parent
9e669d2983
commit
c4b7c68170
1 changed files with 18 additions and 4 deletions
|
@ -1,12 +1,20 @@
|
|||
{ config, pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [ nginx ];
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts."polsevev.dev" = {
|
||||
useACMEHost = "polsevev.dev";
|
||||
forceSSL = true;
|
||||
root = "/var/www/polsevev/dist";
|
||||
services.nginx.virtualHosts = {
|
||||
"polsevev.dev" = {
|
||||
useACMEHost = "polsevev.dev";
|
||||
forceSSL = true;
|
||||
root = "/var/www/polsevev/dist";
|
||||
};
|
||||
"stortissvatnet.no" = {
|
||||
useACMEHost = "stortissvatnet.no";
|
||||
forceSSL = true;
|
||||
root = "/var/www/stortissvatnet";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "rolf.martin@glomsrud.no";
|
||||
|
@ -17,6 +25,12 @@
|
|||
environmentFile = /cloudflare.env;
|
||||
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