Infini-OPTIPLEX: refactor nginx config and use acme certs

This commit is contained in:
Infinidoge 2024-04-26 02:43:52 -04:00
parent 12bb7ac8db
commit d784d4eee4
Signed by: Infinidoge
SSH key fingerprint: SHA256:VEv3zmkBzcYYle6/37h+BbOyNDbGy/o8SHh7fcs9RbQ
8 changed files with 83 additions and 31 deletions

View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
let
inherit (config.common.nginx) ssl ssl-optional;
in
{
services.nginx.virtualHosts = {
"blahaj.inx.moe" = ssl-optional // {
locations."/" = {
tryFiles = "/Blahaj.png =404";
root = ./static;
};
};
"ponder.inx.moe" = ssl // {
locations."/".root = pkgs.ponder;
};
"nitter.inx.moe" = ssl // {
globalRedirect = "twitter.com";
};
};
}