Skip to content

Bug: reroute http to https #140

Description

@gkpty

Describe the bug
when a user enters the url without https he is taken to the site via http.

  • force http to https in the cloudfront distribution by modifying the cloudformation template default for the cloudfront dist in lib/templateDefaults.js

the example bellow applies the appropriate settings to the CF template called template

template.Resources.CloudFrontDist.Properties.DistributionConfig.DefaultCacheBehavior["ViewerProtocolPolicy"] = "redirect-to-https"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions