mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 01:24:05 -05:00
drop calibre; add booklore quadlet; need to figure out proxying
This commit is contained in:
parent
558115d0d8
commit
b2a250e584
3 changed files with 40 additions and 12 deletions
40
modules/quadlets/booklore/default.nix
Normal file
40
modules/quadlets/booklore/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.caddy.virtualHosts."booklore.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy http://10.88.0.4:6060
|
||||
'';
|
||||
virtualisation.quadlet = {
|
||||
containers = {
|
||||
booklore-web.containerConfig = {
|
||||
image = "ghcr.io/booklore-app/booklore:v1.13.2";
|
||||
environments = {
|
||||
USER_ID = "0";
|
||||
GROUP_ID = "0";
|
||||
TZ = "America/New_York";
|
||||
DATABASE_URL = "jdbc:mariadb://booklore-db:3306/booklore";
|
||||
DB_USER = "booklore";
|
||||
DB_PASSWORD = "changeme";
|
||||
BOOKLORE_PORT = "6060";
|
||||
};
|
||||
publishPorts = [
|
||||
""
|
||||
];
|
||||
pod = config.virtualisation.quadlet.pods.booklore.ref;
|
||||
};
|
||||
booklore-db.containerConfig = {
|
||||
image = "lscr.io/linuxserver/mariadb:11.4.5";
|
||||
environments = {
|
||||
PUID = "1000";
|
||||
PGID = "1000";
|
||||
TZ = "America/New_York";
|
||||
MYSQL_ROOT_PASSWORD = "changeme";
|
||||
MYSQL_DATABASE = "booklore";
|
||||
MYSQL_USER = "booklore";
|
||||
MYSQL_PASSWORD = "changeme";
|
||||
};
|
||||
pod = config.virtualisation.quadlet.pods.booklore.ref;
|
||||
};
|
||||
};
|
||||
pods.booklore = { };
|
||||
};
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.calibre-server = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
port = "8092";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue