summary refs log tree commit diff
path: root/hosts/vps/website.nix
blob: 9dc9fc79abb7bfef6c653640a3146bf5af5a4b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, config, ... }:

{
  config = {
    services.caddy = {
      enable = true;
      # virtualHosts = {
      #   "http://localhost".extraConfig = ''
      #     try_files ${pkgs.writeText "index.html" ''
      #       hello world
      #     ''} /
      #   '';
      # };
    };
    networking.firewall.allowedTCPPorts = [80 443];
  };
}