-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.exs
38 lines (33 loc) · 1.07 KB
/
dev.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use Mix.Config
# Configure your database
config :epoch, Epoch.Repo,
username: "postgres",
password: "postgres",
database: "epoch_dev",
hostname: "localhost",
pool_size: 10,
port: "5432"
config :epoch, Epoch.Endpoint,
http: [port: 4000],
debug_errors: true,
check_origin: false
# ## SSL Support
#
# In order to use HTTPS in development, a self-signed
# certificate can be generated by running the following
# command from your terminal:
#
# openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout priv/server.key -out priv/server.pem
#
# The `http:` config above can be replaced with:
#
# https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
#
# If desired, both `http:` and `https:` keys can be
# configured to run both http and https servers on
# different ports.
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
if File.exists?("config/dev.secret.exs") do
import_config "dev.secret.exs"
end