|
1 | 1 | import Config |
2 | 2 |
|
| 3 | +# Mark this as production environment (used by application.ex to skip repo if no DATABASE_URL) |
| 4 | +config :query_service_ex, env: :prod |
| 5 | + |
3 | 6 | # For production, don't forget to configure the url host |
4 | 7 | # to something meaningful, Phoenix uses this information |
5 | 8 | # when generating URLs. |
6 | | - |
| 9 | +# Note: secret_key_base is set in runtime.exs, using a build-time placeholder here |
7 | 10 | config :query_service_ex, QueryServiceExWeb.Endpoint, |
8 | | - url: [host: System.get_env("PHX_HOST") || "localhost", port: 443, scheme: "https"], |
| 11 | + url: [host: "localhost", port: 443, scheme: "https"], |
9 | 12 | http: [ |
10 | 13 | # Enable IPv6 and bind on all interfaces. |
11 | | - # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access. |
12 | 14 | ip: {0, 0, 0, 0, 0, 0, 0, 0}, |
13 | | - port: String.to_integer(System.get_env("PORT") || "3902") |
| 15 | + port: 3902 |
14 | 16 | ], |
15 | | - secret_key_base: System.fetch_env!("SECRET_KEY_BASE"), |
| 17 | + secret_key_base: "build_time_placeholder_will_be_replaced_at_runtime_by_runtime_exs_config", |
16 | 18 | server: true |
17 | 19 |
|
18 | | -# Configure Rust Core backend |
| 20 | +# Configure Rust Core backend (defaults, can be overridden in runtime.exs) |
19 | 21 | config :query_service_ex, |
20 | | - rust_core_url: System.get_env("RUST_CORE_URL") || "http://localhost:3900", |
21 | | - core_ws_url: System.get_env("CORE_WS_URL") || "ws://localhost:3900" |
| 22 | + rust_core_url: "http://localhost:3900", |
| 23 | + core_ws_url: "ws://localhost:3900" |
22 | 24 |
|
23 | 25 | # Do not print debug messages in production |
24 | 26 | config :logger, level: :info |
|
0 commit comments