1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 01:22:49 +00:00

server - added distillery for prod builds

This commit is contained in:
2018-01-22 16:03:12 -06:00
parent 0d3a92c28d
commit 259c270c51
20 changed files with 251 additions and 64 deletions

View File

@@ -0,0 +1,4 @@
{
"bnet_client_id": "",
"bnet_redirect_uri": ""
}

View File

@@ -26,7 +26,6 @@ config :logger, :console,
# 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"
import_config "config.secret.exs"
# user permissions for app - right now the read/write don't mean anything
config :myapp, MyApp.Guardian,

View File

@@ -1,16 +0,0 @@
# secret dev configurations - api keys go here
use Mix.Config
config :myapp,
bnet_client_id: "",
bnet_client_secret: "",
bnet_redirect_uri: "",
# admin login credentials for site
admin_accounts: [%{
"username" => "",
"password" => "",
"character_name" => "",
"character_avatar" => "",
"permissions" => ""
}]

View File

@@ -51,3 +51,5 @@ config :myapp, MyApp.Repo,
config :myapp, MyApp.Guardian,
issuer: "myapp",
secret_key: "secret"
import_config "dev.secret.exs"

View File

@@ -0,0 +1,18 @@
# secret dev configurations - api keys go here
use Mix.Config
config :myapp,
bnet_client_id: "",
bnet_client_secret: "",
bnet_redirect_uri: "https://localhost/oauth",
# admin login credentials for site
admin_accounts: [
%{
"username" => "",
"password" => "",
"character_name" => "",
"character_avatar" => "",
"permissions" => ""
},
]

View File

@@ -14,9 +14,12 @@ use Mix.Config
# manifest is generated by the mix phx.digest task
# which you typically run after static files are built.
config :myapp, MyAppWeb.Endpoint,
load_from_system_env: true,
url: [host: "example.com", port: 80]
# cache_static_manifest: "priv/static/cache_manifest.json"
code_reloader: false,
http: [port: 80],
url: [host: "classicwowforums.com", port: 80],
server: true,
root: ".",
version: Application.spec(:myapp, :vsn)
# Do not print debug messages in production
config :logger, level: :info

View File

@@ -9,7 +9,7 @@ use Mix.Config
# kept out of version control and might be hard to recover
# or recreate for your teammates (or yourself later on).
config :myapp, MyAppWeb.Endpoint,
secret_key_base: "Bv6Dz/0GVoxyCC8TKpgwX/7y8NHtsSEQB49UAzNQLzuAafmkOQR0wshC/7Wwyp3/"
secret_key_base: "TODO:"
# Configure your database
config :myapp, MyApp.Repo,
@@ -23,18 +23,20 @@ config :myapp, MyApp.Repo,
# Secret key. You can use `mix guardian.gen.secret` to get one
config :myapp, MyApp.Guardian,
issuer: "myapp",
secret_key: "secret"
secret_key: "TODO:"
config :myapp,
bnet_client_id: "",
bnet_client_secret: "",
bnet_redirect_uri: "",
# admin login credentials for site
admin_accounts: [%{
# admin login credentials for site
admin_accounts: [
%{
"username" => "",
"password" => "",
"character_name" => "",
"character_avatar" => "",
"permissions" => ""
}]
},
]