siga

Sistema Interativo de GerĂȘncia de Atividades.
Log | Files | Refs | README | LICENSE

config.exs (1148B)


      1 # This file is responsible for configuring your application
      2 # and its dependencies with the aid of the Config module.
      3 #
      4 # This configuration file is loaded before any dependency and
      5 # is restricted to this project.
      6 
      7 # General application configuration
      8 import Config
      9 
     10 config :users,
     11   ecto_repos: [Users.Repo],
     12   generators: [timestamp_type: :utc_datetime]
     13 
     14 # Configure the endpoint
     15 config :users, UsersWeb.Endpoint,
     16   url: [host: "localhost"],
     17   adapter: Bandit.PhoenixAdapter,
     18   render_errors: [
     19     formats: [json: UsersWeb.ErrorJSON],
     20     layout: false
     21   ],
     22   pubsub_server: Users.PubSub,
     23   live_view: [signing_salt: "cLrzQwXm"]
     24 
     25 # Configure Elixir's Logger
     26 config :logger, :default_formatter,
     27   format: "$time $metadata[$level] $message\n",
     28   metadata: [:request_id]
     29 
     30 # Use Jason for JSON parsing in Phoenix
     31 config :phoenix, :json_library, Jason
     32 
     33 # Base URL of the SIGA auth service. Overridden by SIGA_AUTH_URL at runtime.
     34 config :users, :auth_url, "http://localhost:8080"
     35 
     36 # Import environment specific config. This must remain at the bottom
     37 # of this file so it overrides the configuration defined above.
     38 import_config "#{config_env()}.exs"