From 3e85052667630a6ef62a5154f4fce74d32621476 Mon Sep 17 00:00:00 2001 From: Natalie Marks Date: Mon, 20 May 2024 17:25:29 -0700 Subject: [PATCH] updated system config --- configuration.nix | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index a46771f..e8a9f05 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,6 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { + inputs, config, pkgs, ... @@ -26,6 +27,13 @@ }; }; + services.foundryvtt = { + enable = true; + hostName = "pathfinder2.duckdns.org"; + proxySSL = true; + proxyPort = 443; + }; + services.caddy = { enable = true; @@ -45,14 +53,17 @@ # reverse_proxy localhost:30000 # encode zstd gzip # ''; - - extraConfig = '' - pathfinder2e.duckdns.org { - # PROXY ALL REQUEST TO PORT 30000 - reverse_proxy localhost:30000 - encode zstd gzip - } + virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' + reverse_proxy localhost:30000 ''; + + # extraConfig = '' + # pathfinder2e.duckdns.org { + # # PROXY ALL REQUEST TO PORT 30000 + # reverse_proxy localhost:30000 + # encode zstd gzip + # } + # ''; }; services.flatpak.enable = true; @@ -96,6 +107,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + inputs.foundryvtt.nixosModules.foundryvtt ]; # Enable OpenGL