From 566dc1e8f6e619f590f017a810a8a55d9a90a25c Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 9 Feb 2023 14:03:19 +0200 Subject: add website (caddy) config, add mpd, add pc config, remove 9p mount from run.sh, improve greet mixin --- hosts/vps/website.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hosts/vps/website.nix (limited to 'hosts/vps/website.nix') diff --git a/hosts/vps/website.nix b/hosts/vps/website.nix new file mode 100644 index 0000000..156e5da --- /dev/null +++ b/hosts/vps/website.nix @@ -0,0 +1,15 @@ +{ pkgs, config, ... }: + +{ + config = { + services.caddy = { + enable = true; + virtualHosts."https://tzlil.club".extraConfig = '' + try_files ${pkgs.writeText "index.html" '' + hello world + ''} / + ''; + }; + networking.firewall.allowedTCPPorts = [443]; + }; +} \ No newline at end of file -- cgit 1.4.1