rico2: setup the proofs subdomain

This commit is contained in:
Adithya 2023-06-02 23:40:36 +05:30
parent 5bba15fe7f
commit 48541f1d8a
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
6 changed files with 20 additions and 5 deletions

View file

@ -9,7 +9,7 @@ in {
userEmail = user.primary.emailAddress;
userName = user.primary.realName;
signing = {
key = user.primary.signingKey;
key = user.primary.pgpFingerprint;
signByDefault = true;
};
extraConfig = {

View file

@ -5,7 +5,6 @@
};
services.caddy.virtualHosts."adtya.xyz" = {
hostName = "adtya.xyz";
serverAliases = ["www.adtya.xyz"];
extraConfig = ''
reverse_proxy http://127.0.0.1:3000

View file

@ -1,8 +1,14 @@
{...}: let
caddy_config = (import ../../../secrets.nix).caddy_config;
secrets = import ../../../secrets.nix;
in {
services.caddy = {
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}
'';
};
};
}

View file

@ -45,5 +45,15 @@ in {
type = https
custom_domains = www.adtya.xyz
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
'';
}

Binary file not shown.