This repository has been archived on 2024-06-16. You can view files and clone it, but cannot push or open issues or pull requests.
mebe/apps/mebe_web/config/config.exs.dist

65 lines
2.2 KiB
Text
Raw Normal View History

2015-05-14 20:58:25 +00:00
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :mebe_web, MebeWeb.Endpoint,
url: [host: "localhost"],
root: Path.expand("..", __DIR__),
secret_key_base: "SECRET",
debug_errors: false,
pubsub: [name: MebeWeb.PubSub,
adapter: Phoenix.PubSub.PG2]
2015-05-14 20:58:25 +00:00
config :blog_config,
blog_name: "My awesome blog",
blog_author: "Author McAuthor",
absolute_url: "http://localhost:4000", # Absolute URL to the site without trailing slash, including protocol
enable_feeds: false, # Set to true to enable RSS feeds
feeds_full_content: false, # Show full content in feeds instead of short content
2015-05-14 20:58:25 +00:00
posts_per_page: 10,
posts_in_feed: 20,
# Disqus comments
disqus_comments: false, # Use Disqus comments
page_commenting: false, # Show comments for pages too
disqus_shortname: "my-awesome-blog",
# Extra HTML that is injected to every page, right before </body>. Useful for analytics scripts.
extra_html: """
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'my-googleanalytics-id', 'auto');
ga('send', 'pageview');
</script>
2015-09-13 19:34:13 +00:00
""",
# Custom templates
# Set to true for any view you want to use custom templates for.
# If using custom templates for a view, create a folder web/templates/custom/<viewname>
# and make a copy of all templates for the view inside the folder.
custom_templates: %{
"ErrorView" => false,
"FeedView" => false,
"PageView" => false,
"LayoutView" => false # Base layouts
}
2015-05-14 20:58:25 +00:00
# Configures Elixir's Logger
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env}.exs"