genny/build/_fixtures/coke/actions/app.go
func forceSSL() buffalo.MiddlewareFunc {
	return forcessl.Middleware(secure.Options{
		SSLRedirect:     ENV == "production",
		SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
	})
}
func forceSSL() buffalo.MiddlewareFunc {
	return forcessl.Middleware(secure.Options{
		SSLRedirect:     ENV == "production",
		SSLProxyHeaders: map[string]string{"X-Forwarded-Proto": "https"},
	})
}
func forceSSL ( ) buffalo . MiddlewareFunc { return forcessl . Middleware ( secure . Options { SSLRedirect : ENV == " " , SSLProxyHeaders : map [ string ] string { " " : " " } , } ) }
// forceSSL will return a middleware that will redirect an incoming request
// if it is not HTTPS. "http://example.com" => "https://example.com".
// This middleware does **not** enable SSL. for your application. To do that
// we recommend using a proxy: https://gobuffalo.io/en/docs/proxy
// for more information: https://github.com/unrolled/secure/
forceSSL will return a middleware that will redirect an incoming request if it is not HTTPS . http : // example . com = > https : // example . com . This middleware does ** not ** enable SSL . for your application . To do that we recommend using a proxy : https : // gobuffalo . io / en / docs / proxy for more information : https : // github . com / unrolled / secure /