diff --git a/app/dcs/code/static-site-hosting/custom-domains/page.md b/app/dcs/code/static-site-hosting/custom-domains/page.md index 1fc702efb..31df0c685 100644 --- a/app/dcs/code/static-site-hosting/custom-domains/page.md +++ b/app/dcs/code/static-site-hosting/custom-domains/page.md @@ -67,7 +67,7 @@ The following placeholders should be replaced in the sample code provided below: - **_\_**: The bucket you want to share -- **_\_**: `optional` The path to the specific folder you want to share (this is known as a prefix) +- **_\_** (optional): The path to the specific folder you want to share (this is known as a prefix) {% tabs %} {% tab label="Windows" %} @@ -97,7 +97,9 @@ uplink share --dns sj:/// --base-url Anything shared with `--dns` will be _readonly_ and available _publicly_ (no secret key needed). -The command above prints a zone file with the information needed to create 3 DNS records. Your CNAME should match the linkshare service domain (`link.storjshare.io` by default). +For securing your domain with TLS you can add the `--tls` flag, which returns an additional TXT record to secure your domain (Pro Accounts only). + +The command above prints a zone file with the information needed to create 3 DNS records (4 if `--tls` was used). Your CNAME should match the linkshare service domain (`link.storjshare.io` by default). ```shell $ORIGIN example.com. @@ -105,6 +107,7 @@ $TTL 3600 IN CNAME link.storjshare.io. txt- IN TXT storj-root:/ txt- IN TXT storj-access: +txt- IN TXT storj-tls:true ``` ## Setting up a custom domain diff --git a/app/dcs/code/static-site-hosting/page.md b/app/dcs/code/static-site-hosting/page.md index ee8053e94..290a89375 100644 --- a/app/dcs/code/static-site-hosting/page.md +++ b/app/dcs/code/static-site-hosting/page.md @@ -21,13 +21,14 @@ You can use your own domain name and host your own static website on Storj 1. Download the uplink binary ([](docId:h3RyJymEIi4gf2S9wVJg8)) and upload your static site files to Storj DCS. You may also upload your files in any other manner, but you will need the Uplink CLI for the remaining steps. -2. Share the bucket or object prefix (not individual objects) that will be the root of your website/subdomain. At the root, name your home page`index.html`. The website will serve the index.html file automatically e.g.`http://www.example.test` and `http://www.example.test/index.html`will serve the same content. Anything shared with `--dns` will be _readonly_ and available _publicly_ (no secret key needed). You can optionally specify your preferred linkshare endpoint with `--base-url` +2. Share the bucket or object prefix (not individual objects) that will be the root of your website/subdomain. At the root, name your home page `index.html`. The website will serve the index.html file automatically e.g. `http://www.example.test` and `http://www.example.test/index.html` will serve the same content. Anything shared with `--dns` will be _readonly_ and available _publicly_ (no secret key needed). +3. Finally, you can optionally add the `--tls` flag in order to return an additional DNS entry used for securing your domain with TLS. {% tabs %} {% tab label="Windows" %} ```Text -./uplink.exe share --dns sj:/// --base-url +./uplink.exe share --dns sj:/// --base-url --tls ``` {% /tab %} @@ -35,7 +36,7 @@ You can use your own domain name and host your own static website on Storj {% tab label="Linux" %} ```Text -uplink share --dns sj:/// --base-url +uplink share --dns sj:/// --base-url --tls ``` {% /tab %} @@ -43,7 +44,7 @@ uplink share --dns sj:/// --base-url {% tab label="macOS" %} ```Text -uplink share --dns sj:/// --base-url +uplink share --dns sj:/// --base-url --tls ``` {% /tab %} @@ -59,6 +60,7 @@ $TTL 3600 IN CNAME link.storjshare.io. txt- IN TXT storj-root:/ txt- IN TXT storj-access: +txt- IN TXT storj-tls:true ``` Remember to update the `$ORIGIN` from `example.com` to your domain name (keep the trailing `.`). You may also change the DNS `$TTL`. @@ -76,7 +78,8 @@ $ORIGIN example.com. $TTL 3600 www.example.com IN CNAME link.storjshare.io. txt-www.example.com IN TXT storj-root:bucket/prefix -txt-www.example.com IN TXT storj-access:jqaz8xihdea93jfbaks8324jrhq1 +txt-www.example.com IN TXT storj-access:abcdefghijklmnopqrstuvwxzy +txt-www.example.com IN TXT storj-tls:true ``` ## Part 2: DNS Provider