feat(dokploy): add env for ADVERTISE_ADDR to installation #593

This commit is contained in:
Mauricio Siu
2024-10-25 20:48:46 -06:00
parent 59308ab013
commit a6618a14d5
6 changed files with 95 additions and 31 deletions

View File

@@ -43,7 +43,8 @@ export const createAdmin = async (input: typeof apiCreateAdmin._type) => {
.values({
authId: newAuth.id,
...(!IS_CLOUD && {
serverIp: await getPublicIpWithFallback(),
serverIp:
process.env.ADVERTISE_ADDR || (await getPublicIpWithFallback()),
}),
})
.returning();