Prerequisite Setup¶
Environment Variables¶
These are three required environemnt variables for starting a Dester deployment:
MONGODB_DOMAIN
: a MongoDB cluster domain- Example:
cluster.fe43d.mongodb.net
- Example:
MONGODB_USERNAME
: a username for a MongoDB admin user that has access to the cluster inputted in the MONGODB_DOMAIN- Example:
dester
- Example:
MONGODB_PASSWORD
: a password for a MongoDB admin user that has access to the cluster inputted in the MONGODB_DOMAIN- Example:
P@ssword123
- Example:
MongoDB¶
To store all the media data, Dester uses MongoDB, which is completely free.
- Sign up to MongoDB
- Create a 'Cluster'
- There are different tiers of clusters. The free one is titled
Shared
- Select the location of the cluster. This doesn't matter too much, but try to choose a region closer to your server
- Press the
Create Cluster
button - The process of creating the cluster will take a few minutes, so be patient
- Once it has been created, press the
Connect
button - Choose any of the connection methods
- On the next page, you will see a code block with a URL. In the URL, find and note down the domain that looks something like
cluster.fe43d.mongodb.net
. This is yourMONGODB_DOMAIN
env variable - On the MongoDB dashboard's sidebar, click
Database Access
- On this page, press the
Add New Database User
button - Fill in the username and password, and keep it for later. These are your
MONGODB_USERNAME
ANDMONGODB_PASSWORD
env variables - Set the
Built-in Role
toAtlas Admin
- Press the
Add User
button - Done!
Storage Providers¶
Dester supports Google Drive, OneDrive, and SharePoint as storage provider. Using them will require extra setup steps as outlined in their respective sections below.
You can ignore uneeded storage providers and only setup the storage providers you will use.
Dester also supports local storage, which requires no additional setup.
Google Drive¶
- Create a Google account if you don't have one already (who doesn't have a Google account 🤔)
- Visit the Google Cloud Console dashboard
- Create a new Google Cloud Console project
- In the search bar, type
Google Drive API
. Find and click on the matching result in the list - Click
Enable this API
- On the sidebar on the left, find and click on
APIs & Services
- Click on
Credentials
- Click
Create Credentials
and selectOAuth Client ID
- Under
Application Type
selectWeb Application
- Under
Authorized JavaScript origins
add a URI with your server URL. For examplehttps://dester.gq
- Under
Authorized redirect URIs
add a URI with your server URL but with/settings/gdrive
at the end of it. For examplehttps://dester.gq/settings/gdrive
- You will be prompted with a client ID and client secret. Note both these values down
- Done!
OneDrive¶
- Create a Microsoft Azure account
- In the Azure Portal search bar, find
Azure Active Directory
and click on it - In the sidebar, find
App Registrations
and click on it - Press the
New Application
button - Under
Supported account types
select the 3rd option (Accounts in any organizational directory and personal Microsoft accounts) - Under
Redirect URI
set the platform toSingle Page Application (SPA)
- Input your Dester deployment's domain with
/callback
after it. For example,https://dester.gq/callback
- Press the
Register
Button - You will be redirected to a new page. Note down the
Application (client) ID
for later - Done!
SharePoint¶
Auth0¶
** Coming Soon **
Last update:
July 24, 2022 11:53:04
Created: July 24, 2022 11:53:04
Created: July 24, 2022 11:53:04