Infini-OPTIPLEX: refactor nginx config and use acme certs
This commit is contained in:
parent
12bb7ac8db
commit
d784d4eee4
8 changed files with 83 additions and 31 deletions
21
hosts/Infini-OPTIPLEX/web.nix
Normal file
21
hosts/Infini-OPTIPLEX/web.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue