34 lines
918 B
Nix
34 lines
918 B
Nix
{ pkgs, config, ... }: {
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
libremdb = {
|
|
image = "quay.io/pussthecatorg/libremdb:latest";
|
|
ports = [
|
|
"7345:3000"
|
|
];
|
|
environment = {
|
|
NEXT_PUBLIC_URL = "https://libremdb.${config.networking.domain}";
|
|
AXIOS_USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0";
|
|
AXIOS_ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8";
|
|
NEXT_TELEMETRY_DISABLED = "1";
|
|
USE_REDIS = "false";
|
|
NEXT_PUBLIC_INSTANCE_NAME = "libremdb.${config.networking.domain}";
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"libremdb.${config.networking.domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = " http://127.0.0.1:7345";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|