Some checks failed
Test Suite / test (push) Has been cancelled
- Introduced `/api/tmdb` and `/api/collection/missing-locations` endpoints to the backend for improved media management. - Added a new `get_media_by_country` function in the collection API to fetch media items based on country codes. - Updated configuration to allow overriding *arr base URLs via environment variables for better flexibility. - Enhanced frontend with a new `MissingLocations` component and integrated it into the routing structure. - Improved the `CollectionMap` component to handle country selection and display media items accordingly. - Added testing dependencies in `requirements.txt` and updated frontend configuration for testing support.
44 lines
843 B
Nix
44 lines
843 B
Nix
# Simplified NixOS VM configuration for testing Movie Map
|
|
# This focuses on PostgreSQL; *arr services should be configured separately
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
networking = {
|
|
hostName = "moviemap-test-vm";
|
|
firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [
|
|
8080 # Movie Map backend
|
|
5432 # PostgreSQL
|
|
];
|
|
};
|
|
};
|
|
|
|
# PostgreSQL configuration
|
|
services.postgresql = {
|
|
enable = true;
|
|
ensureDatabases = [ "moviemap_test" ];
|
|
ensureUsers = [
|
|
{
|
|
name = "moviemap";
|
|
ensureDBOwnership = true;
|
|
}
|
|
];
|
|
authentication = ''
|
|
local all all trust
|
|
host all all 0.0.0.0/0 trust
|
|
'';
|
|
settings = {
|
|
listen_addresses = "'*'";
|
|
};
|
|
};
|
|
|
|
# System packages
|
|
environment.systemPackages = with pkgs; [
|
|
curl
|
|
jq
|
|
postgresql
|
|
];
|
|
}
|
|
|