[pocket-id] Fixes ports
This commit is contained in:
@@ -2,6 +2,13 @@
|
|||||||
let
|
let
|
||||||
inherit (import ./lib.nix config) mkContainer blazestar;
|
inherit (import ./lib.nix config) mkContainer blazestar;
|
||||||
userIds = import ./user-ids.nix;
|
userIds = import ./user-ids.nix;
|
||||||
|
# The default is to run on port 80, which the pocket-id user cannot bind to.
|
||||||
|
# We need a different port to be able to serve traffic.
|
||||||
|
# The following ports in the container are already taken:
|
||||||
|
# - 8080: API
|
||||||
|
# - 3000: Web UI
|
||||||
|
# - 2019: Admin endpoint
|
||||||
|
port = 8888;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
users.groups.pocket-id = {
|
users.groups.pocket-id = {
|
||||||
@@ -19,7 +26,7 @@ in
|
|||||||
image = "ghcr.io/pocket-id/pocket-id";
|
image = "ghcr.io/pocket-id/pocket-id";
|
||||||
dependsOn = [];
|
dependsOn = [];
|
||||||
hostName = "auth";
|
hostName = "auth";
|
||||||
port = 3000;
|
port = port;
|
||||||
public = false;
|
public = false;
|
||||||
domain = blazestar;
|
domain = blazestar;
|
||||||
homepageOpts = {
|
homepageOpts = {
|
||||||
@@ -34,7 +41,10 @@ in
|
|||||||
environment = {
|
environment = {
|
||||||
PUBLIC_APP_URL = "https://auth.${blazestar}";
|
PUBLIC_APP_URL = "https://auth.${blazestar}";
|
||||||
# Whether the app is behind a reverse proxy.
|
# Whether the app is behind a reverse proxy.
|
||||||
TRUST_PROXY = "true";
|
TRUST_PROXY = "false";
|
||||||
|
CADDY_PORT = toString port;
|
||||||
|
# PORT = "3000"; # Frontend port
|
||||||
|
# BACKEND_PORT = "8080"; # Backend port
|
||||||
PUID = toString userIds.pocket-id.uid;
|
PUID = toString userIds.pocket-id.uid;
|
||||||
PGID = toString userIds.pocket-id.gid;
|
PGID = toString userIds.pocket-id.gid;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user