sakura: init hedgedoc
This commit is contained in:
parent
e71a5cfda7
commit
09f17993ab
2 changed files with 25 additions and 0 deletions
17
hosts/sakura/services/hedgedoc.nix
Normal file
17
hosts/sakura/services/hedgedoc.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue