Resolve host from Coolify's definition
This commit is contained in:
@@ -21,7 +21,6 @@ services:
|
|||||||
- LOGIN_PASSWORD
|
- LOGIN_PASSWORD
|
||||||
- MIX_ENV
|
- MIX_ENV
|
||||||
- OPENAI_KEY
|
- OPENAI_KEY
|
||||||
- PHX_HOST
|
|
||||||
- POOL_SIZE
|
- POOL_SIZE
|
||||||
- PORT
|
- PORT
|
||||||
- SECRET_KEY_BASE
|
- SECRET_KEY_BASE
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ if config_env() == :prod do
|
|||||||
environment variable API_TOKEN is missing.
|
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")
|
port = String.to_integer(System.get_env("PORT") || "4000")
|
||||||
|
|
||||||
config :music_library, MusicLibraryWeb, login_password: login_password, api_token: api_token
|
config :music_library, MusicLibraryWeb, login_password: login_password, api_token: api_token
|
||||||
|
|||||||
Reference in New Issue
Block a user