Commit 5e526c24 authored by jz143's avatar jz143

define trusted proxies to get IP of LAN users

parent 41ff74ce
......@@ -9,6 +9,8 @@
<%= ActionDispatch.remote_ip.calculate_ip() %>
<div class="container controller_<%= controller_name %> action_<%= action_name %>">
<div class="header">
<ul class="nav nav-pills pull-right">
......@@ -26,5 +26,10 @@ module Appstore
# Be sure to have the adapter's gem in your Gemfile and follow
# the adapter's specific installation and deployment instructions.
config.active_job.queue_adapter = :resque
# Since many clients are from Duke private network,
# we need to customize the definition of trusted proxies to get their real
# IP addresses
config.action_dispatch.trusted_proxies = ['')]
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