feat(docker): add new environment variables for Docker config

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2024-02-08 12:20:47 +01:00
parent ab3f5dfd27
commit 28430d6d57
2 changed files with 178 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
defmodule Mobilizon.Service.Config.Helpers do
@moduledoc """
Provide some helpers to configuration files
"""
@spec host_from_uri(String.t() | nil) :: String.t() | nil
def host_from_uri(nil), do: nil
def host_from_uri(uri) when is_binary(uri) do
URI.parse(uri).host
end
end