This commit is contained in:
Mirai Kumiko 2025-06-23 09:16:27 +00:00
parent aac9bcb6e4
commit 3f329cf59e
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
13 changed files with 191 additions and 119 deletions

View file

@ -16,10 +16,14 @@ config :nulla, Nulla.Repo,
# The watchers configuration can be used to run external
# watchers to your application. For example, we can use it
# to bundle .js and .css sources.
host = System.get_env("PHX_HOST") || "example.com"
port = String.to_integer(System.get_env("PORT") || "4000")
config :nulla, NullaWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
url: [host: host, port: port],
http: [ip: {127, 0, 0, 1}, port: port],
check_origin: false,
code_reloader: true,
debug_errors: true,