This is just a traefik port forwarding file, I'm running lemmy using the original docker-compose I used before, just with podman and podman-compose for the ability to just move the server without having to recreate it.
18 lines
364 B
Nix
18 lines
364 B
Nix
{...}: {
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
services.lemmy.loadBalancer.servers = [
|
|
{
|
|
url = "http://localhost:1236";
|
|
}
|
|
];
|
|
|
|
routers.lemmy = {
|
|
rule = "Host(`lemmy.cronyakatsuki.xyz`)";
|
|
tls = {
|
|
certResolver = "porkbun";
|
|
};
|
|
service = "lemmy";
|
|
entrypoints = "websecure";
|
|
};
|
|
};
|
|
}
|