class Marten::Conf::GlobalSettings::SSLRedirect

Overview

Allows to configure SSL redirect-related settings.

Defined in:

marten/conf/global_settings/ssl_redirect.cr

Instance Method Summary

Instance Method Detail

def exempted_paths : Array(Regex | String) #

Returns an array of paths that should be exempted from HTTPS redirects.


[View source]
def exempted_paths=(paths : Array(Regex) | Array(String) | Array(Regex | String)) #

Allows to set the array of paths that should be exempted from HTTPS redirects.

Both strings and regexes are accepted.


[View source]
def host : String? #

Returns the host that should be used when redirecting non-HTTPS requests.


[View source]
def host=(host : Nil | String) #

Allows to set the host that should be used when redirecting non-HTTPS requests.

If set to nil, the HTTPS redirect will be performed using the request's host.


[View source]