diff options
Diffstat (limited to 'nix/hosts/corrino/www/db.emile.space.nix')
-rw-r--r-- | nix/hosts/corrino/www/db.emile.space.nix | 23 |
1 files changed, 23 insertions, 0 deletions
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" ]; + }; + }; + }; +} |