# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
use Rack::Deflater
run Rails.application

require 'rack/reverse_proxy'

use Rack::ReverseProxy do
  # Set :preserve_host to true globally (default is true already)
  reverse_proxy_options preserve_host: true

  # Forward the path /test* to http://example.com/test*
  reverse_proxy '/latin-america/', 'http://www.terra-i.org/latin-america/'
end

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
use Rack::Deflater
run Rails.application

require 'rack/reverse_proxy'

use Rack::ReverseProxy do
  # Set :preserve_host to true globally (default is true already)
  reverse_proxy_options preserve_host: true

  # Forward the path /test* to http://example.com/test*
  reverse_proxy /^\/gfw-assets\/?(.*)$/, 'https://cdn.rawgit.com/simbiotica/gfw_assets/831ef6558cf2693357fb23829ef7e6acf7ebc840/src/header-loader.js$1'
end

Create PROXY to redirect to the assets js file
Create PROXY to redirect to the assets js file
