Minor improvements
This commit is contained in:
@@ -12,7 +12,7 @@ in {
|
||||
sslCertificateKey = "/etc/ssl-snakeoil/code_home_feal_no.key";
|
||||
sslCertificate = "/etc/ssl-snakeoil/code_home_feal_no.crt";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.1.2:${toString cfg.port}";
|
||||
proxyPass = "http://${cfg.host}:${toString cfg.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
let
|
||||
host = "127.0.1.2";
|
||||
port = "5005";
|
||||
in {
|
||||
# Flame - Homelab dashboard/linktree
|
||||
virtualisation.oci-containers.containers = {
|
||||
flame = {
|
||||
image = "pawelmalak/flame";
|
||||
ports = [ "127.0.0.1:5005:5005" ];
|
||||
ports = [ "${host}:${port}:5005" ];
|
||||
volumes = [
|
||||
"/var/lib/flame/data:/app/data/"
|
||||
];
|
||||
@@ -12,7 +15,7 @@
|
||||
};
|
||||
services.nginx.virtualHosts."flame.home.feal.no" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:5005";
|
||||
proxyPass = "http://${host}:${port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user