diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2021-08-18 21:58:21 +0200 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2021-08-18 21:58:21 +0200 |
commit | 605d85d996c0d28c1e415cbede421e38fdcc3686 (patch) | |
tree | bc99e4017f8b31e5d02b487b74942cf04e249b6b | |
parent | add delegations for Client.join/2 and Client.upload/3 (diff) |
remove production config
-rw-r--r-- | config/prod.exs | 10 | ||||
-rw-r--r-- | config/prod.secret.exs | 29 |
2 files changed, 5 insertions, 34 deletions
diff --git a/config/prod.exs b/config/prod.exs index 1bb706e..e3687cc 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -9,12 +9,12 @@ use Mix.Config # manifest is generated by the `mix phx.digest` task, # which you should run after static files are built and # before starting your production server. -config :matrix_app_service, MatrixAppServiceWeb.Endpoint, - url: [host: "example.com", port: 80], - cache_static_manifest: "priv/static/cache_manifest.json" +# config :matrix_app_service, MatrixAppServiceWeb.Endpoint, +# url: [host: "example.com", port: 80], +# cache_static_manifest: "priv/static/cache_manifest.json" # Do not print debug messages in production -config :logger, level: :info +# config :logger, level: :info # ## SSL Support # @@ -52,4 +52,4 @@ config :logger, level: :info # Finally import the config/prod.secret.exs which loads secrets # and configuration from environment variables. -import_config "prod.secret.exs" +# import_config "prod.secret.exs" diff --git a/config/prod.secret.exs b/config/prod.secret.exs deleted file mode 100644 index a20e76d..0000000 --- a/config/prod.secret.exs +++ /dev/null @@ -1,29 +0,0 @@ -# In this file, we load production configuration and secrets -# from environment variables. You can also hardcode secrets, -# although such is generally not recommended and you have to -# remember to add this file to your .gitignore. -use Mix.Config - -secret_key_base = - System.get_env("SECRET_KEY_BASE") || - raise """ - environment variable SECRET_KEY_BASE is missing. - You can generate one by calling: mix phx.gen.secret - """ - -config :matrix_app_service, MatrixAppServiceWeb.Endpoint, - http: [ - port: String.to_integer(System.get_env("PORT") || "4000"), - transport_options: [socket_opts: [:inet6]] - ], - secret_key_base: secret_key_base - -# ## Using releases (Elixir v1.9+) -# -# If you are doing OTP releases, you need to instruct Phoenix -# to start each relevant endpoint: -# -# config :matrix_app_service, MatrixAppServiceWeb.Endpoint, server: true -# -# Then you can assemble a release by calling `mix release`. -# See `mix help release` for more information. |