Fix getting remote IP behind reverse proxy

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-27 15:42:09 +02:00
parent 9b0b753064
commit 7c0b813dce
5 changed files with 18 additions and 3 deletions

View File

@@ -48,7 +48,8 @@ config :mobilizon, Mobilizon.Web.Endpoint,
secret_key_base: "1yOazsoE0Wqu4kXk3uC5gu3jDbShOimTCzyFL3OjCdBmOXMyHX87Qmf3+Tu9s0iM",
render_errors: [view: Mobilizon.Web.ErrorView, accepts: ~w(html json)],
pubsub_server: Mobilizon.PubSub,
cache_static_manifest: "priv/static/manifest.json"
cache_static_manifest: "priv/static/manifest.json",
has_reverse_proxy: true
# Upload configuration
config :mobilizon, Mobilizon.Web.Upload,