configure reverse proxy for ai
This commit is contained in:
parent
a68decebc6
commit
2cc3da022c
2 changed files with 55 additions and 26 deletions
22
ai.nix
Normal file
22
ai.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
self,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
domain = "ai.sondell.org";
|
||||
in {
|
||||
services.nginx.virtualHosts = {
|
||||
${domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:9876/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
# Use DNS Challenege.
|
||||
# acmeRoot = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue