| ... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
| 2 | # your system. Help is available in the configuration.nix(5) man page | 2 | # 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 | }; |
| 28 | | 29 | |
| | 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; |
| 31 | | 39 | |
| ... | @@ -45,14 +53,17 @@ | ... | @@ -45,14 +53,17 @@ |
| 45 | # reverse_proxy localhost:30000 | 53 | # reverse_proxy localhost:30000 |
| 46 | # encode zstd gzip | 54 | # encode zstd gzip |
| 47 | # ''; | 55 | # ''; |
| 48 | | 56 | 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 | }; |
| 57 | | 68 | |
| 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.nix | 109 | ./hardware-configuration.nix |
| | 110 | inputs.foundryvtt.nixosModules.foundryvtt |
| 99 | ]; | 111 | ]; |
| 100 | | 112 | |
| 101 | # Enable OpenGL | 113 | # Enable OpenGL |