authorgravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2024-05-20 17:25:29-07:00
committergravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2024-05-20 17:25:29-07:00
log3e85052667630a6ef62a5154f4fce74d32621476
treef4c86b8e4d8e2091d9ec987d5db8447214214c87
parentf7f6a0e7b533d218ecf2f05ed38892857a2b2fa6

updated system config


1 files changed, 19 insertions(+), 7 deletions(-)

configuration.nix+19-7
...@@ -2,6 +2,7 @@...@@ -2,6 +2,7 @@
2# your system. Help is available in the configuration.nix(5) man page2# your system. Help is available in the configuration.nix(5) man page
3# and in the NixOS manual (accessible by running ‘nixos-help’).3# and in the NixOS manual (accessible by running ‘nixos-help’).
4{4{
5 inputs,
5 config,6 config,
6 pkgs,7 pkgs,
7 ...8 ...
...@@ -26,6 +27,13 @@...@@ -26,6 +27,13 @@
26 };27 };
27 };28 };
2829
30 services.foundryvtt = {
31 enable = true;
32 hostName = "pathfinder2.duckdns.org";
33 proxySSL = true;
34 proxyPort = 443;
35 };
36
29 services.caddy = {37 services.caddy = {
30 enable = true;38 enable = true;
3139
...@@ -45,14 +53,17 @@...@@ -45,14 +53,17 @@
45 # reverse_proxy localhost:3000053 # reverse_proxy localhost:30000
46 # encode zstd gzip54 # encode zstd gzip
47 # '';55 # '';
4856 virtualHosts."pathfinder2e.duckdns.org".extraConfig = ''
49 extraConfig = ''57 reverse_proxy localhost:30000
50 pathfinder2e.duckdns.org {
51 # PROXY ALL REQUEST TO PORT 30000
52 reverse_proxy localhost:30000
53 encode zstd gzip
54 }
55 '';58 '';
59
60 # extraConfig = ''
61 # pathfinder2e.duckdns.org {
62 # # PROXY ALL REQUEST TO PORT 30000
63 # reverse_proxy localhost:30000
64 # encode zstd gzip
65 # }
66 # '';
56 };67 };
5768
58 services.flatpak.enable = true;69 services.flatpak.enable = true;
...@@ -96,6 +107,7 @@...@@ -96,6 +107,7 @@
96 imports = [107 imports = [
97 # Include the results of the hardware scan.108 # Include the results of the hardware scan.
98 ./hardware-configuration.nix109 ./hardware-configuration.nix
110 inputs.foundryvtt.nixosModules.foundryvtt
99 ];111 ];
100112
101 # Enable OpenGL113 # Enable OpenGL