diff options
| author | schererleander <leander@schererleander.de> | 2025-05-30 03:19:21 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-05-30 03:19:21 +0200 |
| commit | c4de0f7452a6b912445d16811e0108bd83a65144 (patch) | |
| tree | 3240a12f161f7a32fa5e2ced450d89a035e2df16 /hosts/vps | |
| parent | 39e704e4c5896ac1986ebfdafc7556f80d40b7cb (diff) | |
add nginx
Diffstat (limited to 'hosts/vps')
| -rw-r--r-- | hosts/vps/configuration.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/vps/configuration.nix b/hosts/vps/configuration.nix index ba29071..c06c77b 100644 --- a/hosts/vps/configuration.nix +++ b/hosts/vps/configuration.nix @@ -18,8 +18,23 @@ services.openssh = { enable = true; + ports = [ 88693 ]; + settings = { + PasswordAuthentication = false; + X11Forwarding = false; + PermitRootLogin = "yes"; + }; }; + services.nginx = { + enable = true; + virtualHosts."schererleander.de" = { + root = "/var/www/site"; + }; + }; + + networking.firewall.allowedTCPPorts = [ 88693 ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; nixpkgs.config.allowUnfree = true; system.stateVersion = "25.05"; |
