From 35d6c2c70824cf77ef2216889cc9730b622f5ac1 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 13 Sep 2024 15:04:06 +0200 Subject: big push --- nix/hosts/corrino/www/db.emile.space.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nix/hosts/corrino/www/db.emile.space.nix (limited to 'nix/hosts/corrino/www/db.emile.space.nix') diff --git a/nix/hosts/corrino/www/db.emile.space.nix b/nix/hosts/corrino/www/db.emile.space.nix new file mode 100644 index 0000000..7cb365e --- /dev/null +++ b/nix/hosts/corrino/www/db.emile.space.nix @@ -0,0 +1,23 @@ +{ config, ... }: + +{ + services.nginx.virtualHosts."db.emile.space" = { + forceSSL = true; + enableACME = true; + + locations = { + "/" = { + proxyPass = "http://127.0.0.1:${toString config.emile.ports.nocodb}"; + }; + }; + }; + virtualisation.oci-containers = { + containers = { + "noco" = { + image = "nocodb/nocodb:latest"; + volumes = [ "nocodb:/usr/app/data" ]; + ports = [ "${toString config.emile.ports.nocodb}:8080" ]; + }; + }; + }; +} -- cgit 1.4.1