Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Mix.Config
- import_config "sys.exs"
- # Basic HTTP config
- config :sahnee,
- ssl_prefix: "",
- hostname: "sahnee.de",
- port_https: 443,
- port_http: 80
- # STUN/TURN server config
- config :sahnee, MongooseICE,
- port: 4008,
- host: "0.0.0.0"
- # Language configuration
- config :sahnee, Sahnee.I18N,
- # All permitted languages.
- lgs: [:en, :de],
- # The default language of the site.
- default_lg: :en
- config :sahnee, Sahnee.Game.Locher,
- url: "https://locher.sahnee.de"
- config :sahnee, Sahnee.Game.Tree,
- url: "https://tree.sahnee.de"
- config :sahnee, Sahnee.Ads,
- id: "<google ads id here>"
- config :sahnee, Sahnee.Google,
- id: "<google sign in id here>",
- secret: "<google sign in secret here>"
- config :sahnee, Sahnee.Recaptcha,
- id: "<google repatcha site key here>",
- secret: "<google repatcha secret key here>"
- # Config for cross origin resource sharing (e.g. sim-locher sending saves to sahnee server)
- config :sahnee, Sahnee.Plug.Cors,
- origins: [
- www: "*",
- sahnee: ~r/https:\/\/([a-z0-9-_\.]*\.)?sahnee\.de(:443)?$/,
- locher: ~r/https:\/\/locher\.sahnee\.de(:443)?$/,
- tree: ~r/https:\/\/tree\.sahnee\.de(:443)?$/
- ],
- safe_origin: "https://sahnee.de:443"
- # The database log in details.
- config :sahnee, Sahnee.Repo,
- database: "<database name here>",
- username: "<database user here>",
- password: "<database password here>",
- hostname: "localhost",
- port: "5432"
- # Authentication options for token generation
- config :sahnee, Sahnee.Guardian,
- bytes: 128,
- hash: :sha256,
- token_secret: "dev",
- password_secret: "dev"
- config :sahnee, Sahnee.User,
- mailchange_token: [
- bytes: 128,
- hash: :sha256,
- secret: "dev-user-mailchange"
- ],
- signup_token: [
- bytes: 128,
- hash: :sha256,
- secret: "dev-user-signup"
- ],
- delete_token: [
- bytes: 128,
- hash: :sha256,
- secret: "dev-user-delete"
- ],
- forgotpassword_token: [
- bytes: 128,
- hash: :sha256,
- secret: "dev-user-forgotpassword"
- ]
- config :sahnee, Sahnee.Plug.Logger,
- requestid_token: [
- bytes: 64,
- hash: :sha,
- secret: "dev-logger"
- ]
- config :sahnee, Sahnee.Mailer,
- server: "smtp.my-mailer.com",
- port: 1025,
- username: "user",
- password: "pass",
- mail: "noreply@sahnee.de"
- #Config for the Backblaze Server
- # Needts to contain the keyid and the key for the bucket the files should be uploaded to
- config :sahnee, Sahnee.Backblaze,
- app_key_id: "<YourKeyIDHere>",
- app_key: "<YourKeyHere>",
- error_retries: 11,
- renewal_interval: 12 #in hours
- # Config for the primary HTTP router.
- config :sahnee, Sahnee.Endpoints.Router,
- # The content security policy header to use.
- # https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
- csp: "",
- #csp: String.replace("
- # default-src 'self' https://localhost:4001 wss://localhost:4002/* https://*.sahnee.de https://*.sahnee.dev;
- # style-src https://cdn.jsdelivr.net 'unsafe-inline';
- # font-src https://cdn.jsdelivr.net;
- # script-src 'self' https://pagead2.googlesyndication.com https://adservice.google.de https://adservice.google.com https://www.googletagservices.com 'unsafe-inline';
- # frame-src https://locher.sahnee.de https://tree.sahnee.de https://googleads.g.doubleclick.net;
- #", "\n", ""),
- # What should be done if a given request does not have an API matching it?
- # * :static - Static files from /priv/dist should be served.
- # * "any string" - Serve files using a reverse proxy.
- fallback: :static,
- # By default the :meta property of an SahneeError is not being sent over HTTP
- # as it may contain sensitve information. Setting this value to true will send
- # it regardless in the "meta" property.
- send_error_meta: false
- config :sahnee, Sahnee.Endpoints.Blog.Router,
- url: "https://sahnee.dev",
- english_tag: 14,
- german_tag: 16
- import_config "local.exs"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement