feat(servers): add loki, the tricker.
This commit is contained in:
parent
e88bccf101
commit
926884f6bf
9 changed files with 134 additions and 1 deletions
5
modules/servers/loki/default.nix
Normal file
5
modules/servers/loki/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./rimgo.nix
|
||||
];
|
||||
}
|
26
modules/servers/loki/rimgo.nix
Normal file
26
modules/servers/loki/rimgo.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{...}: {
|
||||
services.rimgo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PORT = 3000;
|
||||
ADDRESS = "127.0.0.1";
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.rimgo.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:3000";
|
||||
}
|
||||
];
|
||||
|
||||
routers.rimgo = {
|
||||
rule = "Host(`rimgo.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "rimgo";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue