Minor improvements

This commit is contained in:
2023-04-20 11:54:13 +02:00
parent 58725073e4
commit 057879fb71
5 changed files with 9 additions and 108 deletions

View File

@@ -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;
};
};

View File

@@ -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}";
};
};
}