rico2: setup the proofs subdomain
This commit is contained in:
parent
5bba15fe7f
commit
48541f1d8a
6 changed files with 20 additions and 5 deletions
|
@ -9,7 +9,7 @@ in {
|
||||||
userEmail = user.primary.emailAddress;
|
userEmail = user.primary.emailAddress;
|
||||||
userName = user.primary.realName;
|
userName = user.primary.realName;
|
||||||
signing = {
|
signing = {
|
||||||
key = user.primary.signingKey;
|
key = user.primary.pgpFingerprint;
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."adtya.xyz" = {
|
services.caddy.virtualHosts."adtya.xyz" = {
|
||||||
hostName = "adtya.xyz";
|
|
||||||
serverAliases = ["www.adtya.xyz"];
|
serverAliases = ["www.adtya.xyz"];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
reverse_proxy http://127.0.0.1:3000
|
reverse_proxy http://127.0.0.1:3000
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
{...}: let
|
{...}: let
|
||||||
caddy_config = (import ../../../secrets.nix).caddy_config;
|
secrets = import ../../../secrets.nix;
|
||||||
in {
|
in {
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
email = caddy_config.email;
|
email = secrets.caddy_config.email;
|
||||||
|
|
||||||
|
virtualHosts."proofs.adtya.xyz" = {
|
||||||
|
extraConfig = ''
|
||||||
|
redir https://keyoxide.org/hkp/${secrets.users.primary.pgpFingerprint}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,5 +45,15 @@ in {
|
||||||
type = https
|
type = https
|
||||||
custom_domains = www.adtya.xyz
|
custom_domains = www.adtya.xyz
|
||||||
local_port = 443
|
local_port = 443
|
||||||
|
|
||||||
|
[http.proofs.adtya.xyz]
|
||||||
|
type = http
|
||||||
|
custom_domains = proofs.adtya.xyz
|
||||||
|
local_port = 80
|
||||||
|
|
||||||
|
[https.proofs.adtya.xyz]
|
||||||
|
type = https
|
||||||
|
custom_domains = proofs.adtya.xyz
|
||||||
|
local_port = 443
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
BIN
secrets.nix
BIN
secrets.nix
Binary file not shown.
Loading…
Reference in a new issue