Add puzzles module and nginx vhosts for puzzles.joshuabell.xyz
This commit is contained in:
parent
418b0f288b
commit
9170ce518c
4 changed files with 32 additions and 13 deletions
24
hosts/h001/mods/puzzles.nix
Normal file
24
hosts/h001/mods/puzzles.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts = {
|
||||
"puzzles.joshuabell.xyz" = {
|
||||
addSSL = true;
|
||||
sslCertificate = "/var/lib/acme/joshuabell.xyz/fullchain.pem";
|
||||
sslCertificateKey = "/var/lib/acme/joshuabell.xyz/key.pem";
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyWebsockets = true;
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:8093";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
services.puzzles-server = {
|
||||
enable = true;
|
||||
package = inputs.puzzles.packages.${pkgs.system}.default;
|
||||
settings = {
|
||||
http = "127.0.0.1:8093";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue