FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

SESOnRequest

SESOnRequest

All Contributors

Sets the SES and HTML base url on each request in a ColdBox application

This package was created to solve the problem of a ColdBox application using the first HTTP_HOST that came its way for all links in the application. (The specific instance was being pinged by a health check from the base server before requests came in through the DNS.) It sets both the SESBaseUrl and the HTMLBaseUrl on each request.

Installation

Couldn't be easier.

box install ses-on-request

Usage

That's it. Installing it registers the interceptor. You are good to go.

Configuration

The interceptor can be configured to include index.cfm in the URL which is required if you're not using URL rewriting. Place the following in your app's /config/Coldbox.cfc to override the includeIndex setting. This requires ColdBox 4.3.0.

moduleSettings = {
    "SESOnRequest" = {
        "includeIndex" = true
    }
};

Additionally if you want to force SSL, set the forceSSL flag to true.

moduleSettings = {
    "SESOnRequest" = {
        "forceSSL" = true
    }
};

Contributors

Thanks goes to these wonderful people (emoji key):


Eric Peterson

? ? ? ?

George Murphy

?

This project follows the all-contributors specification. Contributions of any kind welcome!

https://github.com/elpete/SESOnRequest

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Download
1.2.1 May 02 2018 11:22 AM May 02 2018 11:22 AM Eric Peterson (elpete)
1.2.0 May 02 2018 10:57 AM May 02 2018 10:57 AM Eric Peterson (elpete)
1.1.0 Nov 29 2016 01:47 AM Nov 29 2016 01:47 AM Eric Peterson (elpete)
1.0.1 Nov 14 2016 03:23 PM Nov 14 2016 03:23 PM Eric Peterson (elpete)
1.0.0 Oct 14 2015 12:46 PM Jun 09 2016 01:19 AM Eric Peterson (elpete)

 

No collaborators yet.
     
  • Oct 14 2015 12:46 PM
  • May 02 2018 11:22 AM
  • 1326
  • 362
  • 3206