2023-04-16 16:49:08 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-04-20 11:54:13 +02:00
|
|
|
let
|
|
|
|
host = "127.0.1.2";
|
|
|
|
port = "5005";
|
|
|
|
in {
|
2023-04-16 16:49:08 +02:00
|
|
|
# Flame - Homelab dashboard/linktree
|
|
|
|
virtualisation.oci-containers.containers = {
|
2023-04-15 20:44:47 +02:00
|
|
|
flame = {
|
|
|
|
image = "pawelmalak/flame";
|
2023-04-20 11:54:13 +02:00
|
|
|
ports = [ "${host}:${port}:5005" ];
|
2023-04-15 20:44:47 +02:00
|
|
|
volumes = [
|
|
|
|
"/var/lib/flame/data:/app/data/"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-04-16 16:49:08 +02:00
|
|
|
services.nginx.virtualHosts."flame.home.feal.no" = {
|
|
|
|
locations."/" = {
|
2023-04-20 11:54:13 +02:00
|
|
|
proxyPass = "http://${host}:${port}";
|
2023-04-16 16:49:08 +02:00
|
|
|
};
|
|
|
|
};
|
2023-04-15 20:44:47 +02:00
|
|
|
}
|
|
|
|
|