config/danbooru_default_config.rb
# Permanently redirect all HTTP requests to HTTPS.
#
# https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
# http://api.rubyonrails.org/classes/ActionDispatch/SSL.html
Permanently redirect all HTTP requests to HTTPS.
Permanently redirect all HTTP requests to HTTPS .
def ssl_options
      {
        redirect: { exclude: ->(request) { request.subdomain == "insecure" } },
        hsts: {
          expires: 1.year,
          preload: true,
          subdomains: false
        }
      }
    end
def ssl_options { redirect : { exclude : -> ( request ) { request . subdomain == "insecure" } } , hsts : { expires : 1 . year , preload : true , subdomains : false } } end
Permanently redirect all HTTP requests to HTTPS.
Permanently redirect all HTTP requests to HTTPS .