diff options
author | Emile <git@emile.space> | 2024-09-13 15:04:06 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-09-13 15:04:06 +0200 |
commit | 35d6c2c70824cf77ef2216889cc9730b622f5ac1 (patch) | |
tree | 2435a97f87409deb57c279fb41534e0d10c901ca /nix/hosts/corrino/www/db.emile.space.nix | |
parent | 902c97cf9aa16c5bb4a45b28f182e4d6033156e7 (diff) |
big push
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" ]; + }; + }; + }; +} |