🐛 [pi4] Fix Actual container not working
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
{ config, common, ... }:
|
{ config, common, ... }:
|
||||||
let
|
let
|
||||||
domain = "beta.budget.${common.domain}";
|
domain = "beta.budget.${common.domain}";
|
||||||
|
port = 8084;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
@ -19,11 +20,12 @@ in
|
|||||||
config =
|
config =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [ port ];
|
||||||
services = {
|
services = {
|
||||||
actual = {
|
actual = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
port = 8084;
|
inherit port;
|
||||||
loginMethod = "password";
|
loginMethod = "password";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -35,7 +37,7 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${config.containers.actual.localAddress}:8084";
|
proxyPass = "http://${config.containers.actual.localAddress}:${toString port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user