Skip to content

Commit

Permalink
Update CNAME
Browse files Browse the repository at this point in the history
You need the location of the bucket as per AWS guidance; without it, when you view an image, it redirects to the S3 domain (which doesn't allow you to use the SSL certificate of your site if using one).
  • Loading branch information
OAuthority committed Jun 24, 2023
1 parent 26aa8e7 commit 1f45fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Replace `<something>` with the name of your S3 bucket, e.g. `wonderfulbali234`.

You can use a domain name for images (for example, `img.mysite.com`). This is needed when you want a CDN (such as CloudFlare) to cache your images. See [https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html Virtual Hosting of Buckets] for details.

1\) At your DNS provider, add a CNAME entry. For example, point `img.mysite.com` to `<your-wgAWSBucketName>.s3.amazonaws.com`).
1\) At your DNS provider, add a CNAME entry. For example, point `img.mysite.com` to `<your-wgAWSBucketName>.s3.<location>.amazonaws.com`).

2\) In LocalSettings.php, set `$wgAWSBucketDomain`. The following values are supported:

Expand Down

0 comments on commit 1f45fc8

Please sign in to comment.