| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | # your system. Help is available in the configuration.nix(5) man page |
| 3 | 3 | # and in the NixOS manual (accessible by running ‘nixos-help’). |
| 4 | 4 | { |
| 5 | inputs, |
| 5 | 6 | config, |
| 6 | 7 | pkgs, |
| 7 | 8 | ... |
| ... | ... | @@ -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 | 37 | services.caddy = { |
| 30 | 38 | enable = true; |
| 31 | 39 | |
| ... | ... | @@ -45,14 +53,17 @@ |
| 45 | 53 | # reverse_proxy localhost:30000 |
| 46 | 54 | # encode zstd gzip |
| 47 | 55 | # ''; |
| 48 | | |
| 49 | | extraConfig = '' |
| 50 | | pathfinder2e.duckdns.org { |
| 51 | | # PROXY ALL REQUEST TO PORT 30000 |
| 52 | | reverse_proxy localhost:30000 |
| 53 | | encode zstd gzip |
| 54 | | } |
| 56 | virtualHosts."pathfinder2e.duckdns.org".extraConfig = '' |
| 57 | reverse_proxy localhost:30000 |
| 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 | 69 | services.flatpak.enable = true; |
| ... | ... | @@ -96,6 +107,7 @@ |
| 96 | 107 | imports = [ |
| 97 | 108 | # Include the results of the hardware scan. |
| 98 | 109 | ./hardware-configuration.nix |
| 110 | inputs.foundryvtt.nixosModules.foundryvtt |
| 99 | 111 | ]; |
| 100 | 112 | |
| 101 | 113 | # Enable OpenGL |