nix-configurations/hosts/lkk-nix-1/services/containers/baserow.nix

28 lines
1.1 KiB
Nix
Raw Normal View History

{ config, outputs, ...}: {
2023-01-18 19:14:16 +00:00
virtualisation.oci-containers.containers."baserow" = {
2023-01-19 11:14:33 +00:00
image = "docker.io/baserow/baserow:1.14.0";
2023-01-18 19:14:16 +00:00
environment = {
BASEROW_PUBLIC_URL = "https://db.lanakk.com";
EMAIL_SMTP = "in-v3.mailjet.com";
EMAIL_SMTP_HOST = "in-v3.mailjet.com";
EMAIL_SMTP_PORT = "587";
EMAIL_SMTP_USER = config.age.secrets.mj-smtp-user.path;
EMAIL_SMTP_PASSWORD = config.age.secrets.mj-smtp-pass.path;
2023-01-18 19:14:16 +00:00
};
ports = [ "3001:80" ];
volumes = [ "baserow_data:/baserow/data" ];
extraOptions = [ "--add-host=postgres:10.88.0.1" ];
};
services.caddy.extraConfig = ''
db.lanakk.com {
2023-01-19 11:14:33 +00:00
reverse_proxy localhost:3001 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
2023-01-18 19:14:16 +00:00
}
'';
}