From 1f44e0ab9d2e666096ade01b688946b9a8fb5091 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 12 Sep 2025 18:22:22 +0300 Subject: [PATCH] Resolve host from Coolify's definition --- compose.yaml | 1 - config/runtime.exs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 0459695d..c92182d2 100644 --- a/compose.yaml +++ b/compose.yaml @@ -21,7 +21,6 @@ services: - LOGIN_PASSWORD - MIX_ENV - OPENAI_KEY - - PHX_HOST - POOL_SIZE - PORT - SECRET_KEY_BASE diff --git a/config/runtime.exs b/config/runtime.exs index 41465f52..d2610e31 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -136,7 +136,7 @@ if config_env() == :prod do environment variable API_TOKEN is missing. """ - host = System.get_env("PHX_HOST") || "example.com" + host = System.get_env("SERVICE_FQDN_WEB") || "example.com" port = String.to_integer(System.get_env("PORT") || "4000") config :music_library, MusicLibraryWeb, login_password: login_password, api_token: api_token