Commit 770342af authored by Mayel's avatar Mayel

config

parent 44db17bc
......@@ -38,12 +38,9 @@ fallback_env = fn a, b, c -> System.get_env(a) || System.get_env(b) || c end
desc = System.get_env("INSTANCE_DESCRIPTION", "An instance of CommonsPub, a federated app ecosystem for open and cooperative networks")
hostname = System.get_env("HOSTNAME", "localhost")
base_url = System.get_env("BASE_URL", "http://localhost:4000")
signing_salt = System.get_env("SIGNING_SALT", "CqAoopA2")
# LiveView support: https://hexdocs.pm/phoenix_live_view/installation.html
config :commons_pub, CommonsPub.Web.Endpoint,
live_view: [
signing_salt: "SECRET_SALT"
]
# stuff you might need to change to be viable
......@@ -57,6 +54,13 @@ config :commons_pub, CommonsPub.Web.Gettext, default_locale: "en", locales: ~w(e
# stuff you might want to change for your use case
# LiveView support: https://hexdocs.pm/phoenix_live_view/installation.html
config :commons_pub, :signing_salt, signing_salt
config :commons_pub, CommonsPub.Web.Endpoint,
live_view: [
signing_salt: signing_salt
]
types_agents = [
User,
Organisation
......
......@@ -98,7 +98,7 @@ defmodule CommonsPub.Web.Router do
end
@doc """
Serve the mock homepage, or forward ActivityPub API requests to the AP module's router
Serve a mock homepage
"""
scope "/" do
......
......@@ -9,7 +9,7 @@ defmodule CommonsPub.Web.Endpoint do
@session_options [
store: :cookie,
key: "_session_key",
signing_salt: "CqAoopA2"
signing_salt: CommonsPub.Config.get(:signing_salt)
]
if is_binary(System.get_env("SENTRY_DSN")) and is_binary(System.get_env("SENTRY_ENV")) do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment