aboutsummaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2026-01-12 08:41:09 -0800
committerFranck Cuny <franck@fcuny.net>2026-01-12 08:41:09 -0800
commit3d08bae9997f7e62934efcbb4d96cd9e92ead40c (patch)
tree2c9610944f490cb9969d3a2ad4abec3d1f8da4ab /profiles
parentadd ssh key for builder (diff)
downloadinfra-3d08bae9997f7e62934efcbb4d96cd9e92ead40c.tar.gz
add my public keys to https://fcuny.net/ssh.pub
Diffstat (limited to '')
-rw-r--r--profiles/reverse-proxy.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/profiles/reverse-proxy.nix b/profiles/reverse-proxy.nix
index 45b42f5..8904561 100644
--- a/profiles/reverse-proxy.nix
+++ b/profiles/reverse-proxy.nix
@@ -2,6 +2,7 @@
pkgs,
lib,
config,
+ adminUser,
...
}:
let
@@ -88,6 +89,23 @@ in
acmeRoot = null;
forceSSL = true;
locations."/".proxyPass = "http://${httpHost}:8070";
+ locations."/ssh.pub" = {
+ extraConfig = ''
+ add_header Content-Type "text/plain; charset=utf-8";
+ add_header Content-Disposition "inline";
+ add_header Cache-Control "public, max-age=3600";
+ return 200 "${
+ lib.concatStringsSep "\\n" (
+ with adminUser.userinfo.sshPublicKeys;
+ [
+ yubikey-personal-nano
+ yubikey-personal-keychain
+ yubikey-personal-backup
+ ]
+ )
+ }\n";
+ '';
+ };
locations."/.well-known/webfinger" = {
root = webfingerRoot;
extraConfig = ''