{ pkgs, config, ... }: { virtualisation.oci-containers.containers = { biblioreads = { image = "nesaku/biblioreads:latest"; ports = [ "5484:3000" ]; }; }; services.nginx = { virtualHosts = { "biblioreads.${config.networking.domain}" = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = " http://127.0.0.1:5484"; extraConfig = '' access_log /var/log/nginx/$server_name-access.log json_analytics; ''; }; }; }; }; }