sakura: init hedgedoc

This commit is contained in:
notohh 2023-06-13 15:17:23 -04:00
parent e71a5cfda7
commit 09f17993ab
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,17 @@
_: {
services.hedgedoc = {
enable = true;
settings = {
port = 3300;
domain = "scratch.notohh.dev";
allowOrigin = ["scratch.notohh.dev"];
allowAnonymous = true;
allowFreeURL = true;
allowEmailRegister = false;
db = {
dialect = "sqlite";
storage = "/var/lib/hedgedoc/db.sqlite";
};
};
};
}

View file

@ -83,6 +83,13 @@
tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production";
};
hedgedoc = {
rule = "Host(`scratch.notohh.dev`)";
entrypoints = ["websecure"];
service = "hedgedoc";
tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production";
};
};
services = {
homepage.loadBalancer.servers = [{url = "http://localhost:3005";}];
@ -95,6 +102,7 @@
grafana.loadBalancer.servers = [{url = "http://localhost:3100";}];
woodpecker-server.loadBalancer.servers = [{url = "http://localhost:8200";}];
atticd.loadBalancer.servers = [{url = "http://localhost:8100";}];
hedgedoc.loadBalancer.servers = [{url = "http://localhost:3300";}];
};
};
};