Use localhost DB and enable VPN confinement for youtarr DB
This commit is contained in:
parent
8b564750ef
commit
c4d4ddecbc
1 changed files with 7 additions and 6 deletions
|
|
@ -27,7 +27,7 @@ in
|
|||
environment = {
|
||||
PUID = toString uid;
|
||||
PGID = toString gid;
|
||||
DB_HOST = "192.168.15.1";
|
||||
DB_HOST = "127.0.0.1";
|
||||
DB_PORT = toString dbPort;
|
||||
DB_USER = "root";
|
||||
DB_PASSWORD = "123qweasd";
|
||||
|
|
@ -72,21 +72,22 @@ in
|
|||
"d '${mediaDir}' 0775 ${name} ${name} - -"
|
||||
];
|
||||
|
||||
# Use Nixarr vpn
|
||||
# Both containers run in the VPN namespace so they share localhost
|
||||
systemd.services.podman-youtarr.vpnconfinement = {
|
||||
enable = true;
|
||||
vpnnamespace = "wg";
|
||||
};
|
||||
|
||||
systemd.services.podman-youtarr-db.vpnconfinement = {
|
||||
enable = true;
|
||||
vpnnamespace = "wg";
|
||||
};
|
||||
|
||||
vpnNamespaces.wg.portMappings = [
|
||||
{
|
||||
from = port;
|
||||
to = port;
|
||||
}
|
||||
{
|
||||
from = dbPort;
|
||||
to = dbPort;
|
||||
}
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue