Resolve host from Coolify's definition

This commit is contained in:
Claudio Ortolina
2025-09-12 18:22:22 +03:00
parent 36e99428f4
commit 1f44e0ab9d
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -21,7 +21,6 @@ services:
- LOGIN_PASSWORD
- MIX_ENV
- OPENAI_KEY
- PHX_HOST
- POOL_SIZE
- PORT
- SECRET_KEY_BASE
+1 -1
View File
@@ -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