Add etebase module and nginx virtual host for h001
This commit is contained in:
parent
9170ce518c
commit
5093b5c63a
2 changed files with 31 additions and 0 deletions
30
hosts/h001/mods/etebase.nix
Normal file
30
hosts/h001/mods/etebase.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.nginx.virtualHosts = {
|
||||
"etebase.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:8732";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.etebase-server = {
|
||||
enable = true;
|
||||
port = 8732;
|
||||
settings = {
|
||||
global = {
|
||||
debug = false;
|
||||
};
|
||||
allowed_hosts = {
|
||||
allowed_host1 = "etebase.joshuabell.xyz";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue