h/box: switch back to gitea, add webfinger for bd

This commit is contained in:
Aaron Bieber 2023-09-21 12:22:16 -06:00
parent fa03edd9ae
commit 290c82e726
No known key found for this signature in database
2 changed files with 29 additions and 5 deletions

View File

@ -721,7 +721,7 @@ in
stateDir = "/media/git";
appName = "Tape:neT";
package = inputs.unstable.legacyPackages.${pkgs.system}.forgejo;
package = inputs.unstable.legacyPackages.${pkgs.system}.gitea;
lfs.enable = true;

View File

@ -516,6 +516,28 @@ in
forceSSL = true;
enableACME = true;
root = "/var/www/bolddaemon.com";
locations = {
"/.well-known/webfinger" = {
extraConfig = ''
add_header Strict-Transport-Security $hsts_header;
add_header Referrer-Policy origin-when-cross-origin;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header Content-Type application/json;
return 200 '${builtins.toJSON {
subject = "acct:aaron@bolddaemon.com";
links = [
{
rel = "http://openid.net/specs/connect/1.0/issuer";
href = "https://git.tapenet.org/";
}
];
}}';
'';
};
};
};
"relay.bolddaemon.com" = {
forceSSL = true;
@ -568,10 +590,12 @@ in
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://192.168.112.4:3000";
proxyWebsockets = true;
priority = 1000;
locations = {
"/" = {
proxyPass = "http://192.168.112.4:3000";
proxyWebsockets = true;
priority = 1000;
};
};
};