Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_chat/endpoint.ex
Show All 30 Lines | defmodule KolabChat.Endpoint do | ||||
plug Plug.Head | plug Plug.Head | ||||
# The session will be stored in the cookie and signed, | # The session will be stored in the cookie and signed, | ||||
# this means its contents can be read but not tampered with. | # this means its contents can be read but not tampered with. | ||||
# Set :encryption_salt if you would also like to encrypt it. | # Set :encryption_salt if you would also like to encrypt it. | ||||
plug Plug.Session, | plug Plug.Session, | ||||
store: :cookie, | store: :cookie, | ||||
key: "_kolab_chat_key", | key: "_kolab_chat_key", | ||||
signing_salt: "M7HpCp6W" | signing_salt: Keyword.get(Application.get_env(:kolab_chat, :salts), :session_signing), | ||||
encryption_salt: Keyword.get(Application.get_env(:kolab_chat, :salts), :session_encryption) | |||||
plug KolabChat.Router | plug KolabChat.Router | ||||
end | end |