Install Dory on Ubuntu

Dory is one of optional requirement to run canvas. What' Dory? Dory builds local DNS and reverse proxy. Dory enables user to access over domain name address like http://. Environment Ubuntu 18.04.5 LTS 1 2 3 4 5 6 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic Install Instruction is at github. Warning Using sudo for gem install dory worked once, but it brought error on canvas installation for some authorization error.

Install Docker Compose on Ubuntu

For setting up Canvas-lms, I need to get docker-compose setup. Environment Ubuntu 18.04.5 LTS 1 2 3 4 5 6 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic pip 21.1.1 1 2 $ pip -V pip 21.1.1 from /home/tato/env1/lib/python3.6/site-packages/pip (python 3.6) Install Installing docker-compose via pip requires setuptools_rust./ 1 2 3 4 5 6 7 8 $ source ~/env1/bin/activate (env1) $ pip install docker-compose .

Configure DNS

When installing Cnavas-lms on docker, I got error below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 $ source ~/env1/bin/activate $ ./script/docker_dev_setup.sh ________ ________ ________ ___ ___ ________ ________ |\ ____\|\ __ \|\ ___ \|\ \ / /|\ __ \|\ ____\ \ \ \___|\ \ \|\ \ \ \\ \ \ \ \ / / | \ \|\ \ \ \___|_ \ \ \ \ \ __ \ \ \\ \ \ \ \/ / / \ \ __ \ \_____ \ \ \ \____\ \ \ \ \ \ \\ \ \ \ / / \ \ \ \ \|____|\ \ \ \_______\ \__\ \__\ \__\\ \__\ \__/ / \ \__\ \__\____\_\ \ \|_______|\|__|\|__|\|__| \|__|\|__|/ \|__|\|__|\_________\ \|_________| Welcome!

Invalidating files in CloudFront

Problem After updating web content in S3 bucket, the page is was not reflected because CloudFront has file cache (for 24 hours by default). The file path is: 1 2 3 ./index.html ./error.html ./css/style.css Solution Ref. AWS CloudFront - Developer Guide - Invalidating Files CloudFront が、Amazon S3 から古いコンテンツを提供し続けるのはなぜですか? The document suggests 2 ways to update(invalidate) the cache on CloudFront. Invalidating Files Using Versioned File Names Note 1000 times invalidation / month is free for each AWS account.

Host HTTPS Website by AWS CloudFront

1. Requirement AWS S3 Bucket (with enabling static website hosting) Bucket endpoint (at “static website hosting” at S3 console) permission to public reading access to the Bucket 2. Create a CloudFront web distribution Sign in to CloudFront console “Create distribution” > “Get Started” Specify settings for the distribution Origin Domain Name : “S3 bucket endpoint” Viewer Protocol Policy : “HTTPS Only” Allowed HTTP Method : “GET, HEAD” Alternate Domain Names : blank (change later) SSL certificate : Default CloudFont Certificate(change later) Supported HTTP version : “HTTP/2, HTTP/1.

Hosting static site on AWS S3

1. Consideration 1.1. Use S3 At first, I tried to host Github Pages for a home page. However, github says I need to upgrade github account or make repository public to host web page. So, I decided host my minimal page to Amazon S3. 1.2. HTTPS According to Amazon S3 ユーザーガイド S3 を使用して静的ウェブサイトをホスティングする, Amazon S3 ウェブサイトエンドポイントは HTTPS をサポートしていません。Amazon S3 バケットで HTTPS を使用する方法については、以下を参照してください。 CloudFront を使用して Amazon S3 バケットに対する HTTPS リクエストを処理するにはどうすればよいですか?