Added wastring.com
This commit is contained in:
parent
b33636b24d
commit
22f598ec50
6 changed files with 41 additions and 13 deletions
|
@ -2,13 +2,6 @@
|
|||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
knownHosts = {
|
||||
desktop = {
|
||||
extraHostNames = [ "192.168.1.227" ];
|
||||
publicKeyFile = ./pubkeys/myhost_ssh_host_dsa_key.pub;
|
||||
};
|
||||
}
|
||||
;
|
||||
matchBlocks = {
|
||||
"lth" = {
|
||||
hostname = "login.student.lth.se";
|
||||
|
|
|
@ -3,17 +3,20 @@
|
|||
}:
|
||||
{
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 80 443 ];
|
||||
};
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
};
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "fredrik@wastring.com";
|
||||
certs."pass.wastring.com" = {
|
||||
dnsProvider = "gandiv5";
|
||||
webroot = null;
|
||||
credentialsFile = /run/secrets/gandi_key;
|
||||
dnsPropagationCheck = true;
|
||||
credentialsFile = /run/secrets/gandi_key;
|
||||
dnsPropagationCheck = true;
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
|
|
21
moduler/wastring.nix
Normal file
21
moduler/wastring.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
in
|
||||
{
|
||||
security.acme = {
|
||||
certs."wastring.com" = {
|
||||
dnsProvider = "gandiv5";
|
||||
webroot = null;
|
||||
credentialsFile = /run/secrets/gandi_key;
|
||||
dnsPropagationCheck = true;
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
virtualHosts."wastring.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/www/wastring.com";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue