You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when running this proxy.
22:24:25.238 [notice] Application main_proxy_app exited: MainProxyApp.Application.start(:normal, []) returned an error: shutdown: failed to start child: MainProxyApp.Proxy
** (EXIT) an exception was raised:
** (ArgumentError) could not start Cowboy2 adapter, missing option :key/:keyfile
I just set up a new umbrella project for my server and can't run it due to this. This is the proxy file
defmodule MainProxyApp.Proxy do
use MainProxy.Proxy
@impl MainProxy.Proxy
def backends do
[
%{
domain: Application.get_env(:main_proxy_app, :language_league_api_server_url),
plug: LLServer.Web.Router
}
]
end
end
any idea on how to fix it?
The text was updated successfully, but these errors were encountered:
Here is my fix for the issue for an umbrella project
you can open iex also in your project directory with PROXY_SERVER=false iex -S mix
# Config Main Proxy# this is need to stop from starting poxy server, in iex -S mixmaybe_server=System.get_env("PROXY_SERVER")||"true"config:main_proxy,server: maybe_server==="true",# This is required for the proxy to workforce_ssl: [hsts: true],# force SSL# http: [port: 4000],https: [port: 4001,otp_app: :app,# umbrella projectcompress: true,cipher_suite: :strong,certfile: "priv/cert/selfsigned.pem",keyfile: "priv/cert/selfsigned_key.pem"]
and then you will need to specify your other app to load in https or the assets will load in http
config:app2,App2.Endpoint,server: false,# This is required for the proxy to workforce_watchers: true,# forces your watchers to start even when the `:server` option is set to `false`force_ssl: [hsts: true],# force SSLhttps: [cipher_suite: :strong],# force SSLurl: [host: "my-app.local"],static_url: [host: "my-app.local"],
config :app3, App3.Endpoint,server: false,# This is required for the proxy to workforce_watchers: true,# forces your watchers to start even when the `:server` option is set to `false`force_ssl: [hsts: true],# force SSLhttps: [cipher_suite: :strong],# force SSLurl: [host: "admin.my-app.local"],static_url: [host: "my-app.local"],
I'm getting the following error when running this proxy.
22:24:25.238 [notice] Application main_proxy_app exited: MainProxyApp.Application.start(:normal, []) returned an error: shutdown: failed to start child: MainProxyApp.Proxy
** (EXIT) an exception was raised:
** (ArgumentError) could not start Cowboy2 adapter, missing option :key/:keyfile
I just set up a new umbrella project for my server and can't run it due to this. This is the proxy file
any idea on how to fix it?
The text was updated successfully, but these errors were encountered: