Cookbook

Publish password protected site using AWS Amplify

Cookbook - Dendron : Publish password protected site using AWS Amplify

You can click here to see a demo of the end result.

You can access the site with username: dendron, password: hierarchy.

  • NOTE: this requires hosting your site on AWS. For most people, this will end up costing you a few cents a month.

SETUP YOUR GITHUB REPO

  1. Create a new github repo using this template.

  2. In your Dendron workspace, remove the docs directory and clone your newly created repository

    cd {your-workspace}
    rm -r docs
    git clone {your-repo} docs
    
    

SETUP AWS

  1. Create an aws account

  2. Login to your AWS account and go select the Amplify Service

  3. Follow the instructions here to connect your github with your amplify GettingStartedExisting

  4. Follow the instructions here to restrict access to your site. RestrictingAccessAWS

  5. Verify that your site is now password protected

PUBLISH YOUR NOTES

  1. Update siteRepoDir in dendron.yml with the location of your github directory

    • Your dendron.yml should look similar to the one below

      site:
          copyAssets: true
          siteHierarchies:
              - root
          siteRootDir: docs
          usePrettyRefs: true
          siteRepoDir: docs
      
      
  2. Run > Dendron: Publish to build your notes for publication and push your notes

  3. Your notes are now published privately behind a password


Backlinks