add a tailnet overlay network verison for trillium to test the android app
This commit is contained in:
parent
72e0759fa4
commit
3a572a9222
1 changed files with 26 additions and 6 deletions
|
|
@ -1,10 +1,12 @@
|
||||||
{
|
{
|
||||||
|
upkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
services.trilium-server = {
|
services.trilium-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = upkgs.trilium-server;
|
||||||
port = 9111;
|
port = 9111;
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
dataDir = "/var/lib/trilium";
|
dataDir = "/var/lib/trilium";
|
||||||
|
|
@ -19,12 +21,30 @@
|
||||||
services.oauth2-proxy.nginx.virtualHosts."notes.joshuabell.xyz" = {
|
services.oauth2-proxy.nginx.virtualHosts."notes.joshuabell.xyz" = {
|
||||||
allowed_groups = [ "notes" ];
|
allowed_groups = [ "notes" ];
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."notes.joshuabell.xyz" = {
|
services.nginx.virtualHosts = {
|
||||||
locations = {
|
"notes.joshuabell.xyz" = {
|
||||||
"/" = {
|
locations = {
|
||||||
proxyWebsockets = true;
|
"/" = {
|
||||||
recommendedProxySettings = true;
|
proxyWebsockets = true;
|
||||||
proxyPass = "http://127.0.0.1:9111";
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://127.0.0.1:9111";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"trilium_overlay" = {
|
||||||
|
serverName = "h001.net.joshuabell.xyz";
|
||||||
|
listen = [
|
||||||
|
{
|
||||||
|
port = 9112;
|
||||||
|
addr = "100.64.0.13";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://127.0.0.1:9111";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue