Skip to content

Commit 7d7d89f

Browse files
improve config
1 parent 97da057 commit 7d7d89f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/config.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config :fileonchain,
1313

1414
# Configures the endpoint
1515
config :fileonchain, FileonchainWeb.Endpoint,
16-
url: [host: "localhost"],
16+
url: [host: System.get_env("PHX_HOST") || "localhost"],
1717
adapter: Bandit.PhoenixAdapter,
1818
render_errors: [
1919
formats: [html: FileonchainWeb.ErrorHTML, json: FileonchainWeb.ErrorJSON],

config/prod.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import Config
66
# which you should run after static files are built and
77
# before starting your production server.
88
config :fileonchain, FileonchainWeb.Endpoint,
9+
render_errors: [
10+
formats: [html: FileonchainWeb.ErrorHTML, json: FileonchainWeb.ErrorJSON],
11+
layout: false
12+
],
913
cache_static_manifest: "priv/static/cache_manifest.json"
1014

1115
# Configures Swoosh API Client

0 commit comments

Comments
 (0)