vfedotovs / sslv_web_scraper

ss.lv web scraping app helps automate information scraping and filtering from classifieds and emails results and stores scraped data in database
GNU General Public License v3.0
5 stars 3 forks source link

FEAT: How to enable SSL for web service in AWS EC2 #274

Closed vfedotovs closed 4 months ago

vfedotovs commented 5 months ago

Configuration example:

Prerequisites:

  1. Docker container is runing on AWS EC2 instance port 80 and servig website
  2. Domain example.lv already used in AWS Route 53

How to contigure AWS:

  1. Create SSL certificate must be in US north virginia (- TBC best to request during AWS CloudFront wizard )

  2. EC2 can be running in Europe Ireland region

  3. Create CloudFront distribution

    • this will use endpoint to EC2 where is web service on port 80 runing
    • this will redirect all HTTP to HTTPS rule
    • this will use alternate CNAME propertydata.lv
    • caching needs to be selected
  4. Once Clound fromt distribution is created

    • Delete current Route 53 A record and create new
    • this A recourd should point to alias of CloundFront endpoint exampleh9bgiess.cloudfront.net.
  5. After A record sync is completed in 5 min website should have SSL lock