nixos-configuration/hetzner-vpn1.nix
Vinzenz Schroeter c94e085e66 vscode works now
2024-03-02 13:07:27 +01:00

68 lines
1.8 KiB
Nix

{...}: {
imports = [
(import ./modules {
hostName = "hetzner-vpn1";
enableHomeManager = false;
})
];
config = {
my = {
enabledUsers = [];
tailscale.enable = true;
};
users.users.root.openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdYqY3Y1/f1bsAi5Qfyr/UWuX9ixu96IeAlhoQaJkbf''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFCJUpbpB3KEKVoKWsKoar9J4RNah8gmQoSH6jQEw5dY vinzenz-pixel-JuiceSSH''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO1CRn4yYTL4XUdCebE8Z4ZeuMujBjorTdWifg911EOv vinzenz-pc2 home roaming''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDNpLDmctyqGpow/ElQvdhY4BLBPS/sigDJ1QEcC7wC vinzenz-lpt2-roaming''
];
security.acme = {
acceptTerms = true;
defaults.email = "acme@zerforschen.plus";
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts = {
"vscode.services.zerforschen.plus" = {
addSSL = true;
enableACME = true;
locations."/" = {
extraConfig = ''
proxy_bind 100.88.118.60;
'';
proxyPass = "http://vinzenz-lpt2:8542/";
proxyWebsockets = true;
};
};
"preon-app.services.zerforschen.plus" = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3000/";
};
};
"preon-api.services.zerforschen.plus" = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3002/";
};
};
};
};
networking.firewall.allowedTCPPorts = [80 443];
};
}