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:
4
config/client.secret.json.template
Normal file
4
config/client.secret.json.template
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"bnet_client_id": "",
|
||||
"bnet_redirect_uri": ""
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
@@ -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" => ""
|
||||
}]
|
||||
@@ -51,3 +51,5 @@ config :myapp, MyApp.Repo,
|
||||
config :myapp, MyApp.Guardian,
|
||||
issuer: "myapp",
|
||||
secret_key: "secret"
|
||||
|
||||
import_config "dev.secret.exs"
|
||||
|
||||
18
config/dev.secret.exs.template
Normal file
18
config/dev.secret.exs.template
Normal 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" => ""
|
||||
},
|
||||
]
|
||||
@@ -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
|
||||
|
||||
@@ -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" => ""
|
||||
}]
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user