From 313d30a65e225e5cdb54b3d2719947214710c414 Mon Sep 17 00:00:00 2001 From: James Eversole Date: Sat, 24 Feb 2024 12:09:42 -0600 Subject: [PATCH] Add sampu service --- nix/application/containers.nix | 12 ++++++++++++ nix/application/nginx.nix | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/nix/application/containers.nix b/nix/application/containers.nix index 6559a84..6b58984 100644 --- a/nix/application/containers.nix +++ b/nix/application/containers.nix @@ -80,6 +80,18 @@ environment = { }; }; + sampu = { + image = "docker.matri.cx/sampu:0.0.1"; + ports = [ "5196:3000" ]; + volumes = [ + "/home/sezycei/srv/containerdata/sampu/data:/app/data" + ]; + environment = { + APPLICATIONPORT = "3000"; + BLOGTITLE = "James' Blog"; + }; + }; + softserve = { image = "charmcli/soft-serve:v0.7.3"; ports = [ diff --git a/nix/application/nginx.nix b/nix/application/nginx.nix index dbe40f9..33890cb 100644 --- a/nix/application/nginx.nix +++ b/nix/application/nginx.nix @@ -57,7 +57,7 @@ client_max_body_size 0; ''; }; - "eversole.co" = static { dir = "/var/www/jame.su"; }; + "eversole.co" = proxied { target = "http://127.0.0.1:5196"; }; "flux.matri.cx" = proxied { target = "http://127.0.0.1:26343"; };