Skip to main content

Environment Variables

Here are all the additional variables you can define in the .env file for setting up a self-hosted instance:

Environment VariableDefaultDescription
PAGINATION_TAKE_COUNT20The numbers of Links to fetch every time you reach to the bottom of the webpage
STORAGE_FOLDER/dataThe folder to store your Screenshot's, PDF's, and profile photos.
AUTOSCROLL_TIMEOUT30The amount of time to wait for the website to be archived (in seconds).
RE_ARCHIVE_LIMIT5Adjusts how often a user can trigger a new archive for each link (in minutes).

Authentication Settings

Environment VariableDefaultDescription
NEXT_PUBLIC_DISABLE_REGISTRATIONfalseIf set to true, registration will be disabled.
NEXT_PUBLIC_CREDENTIALS_ENABLEDtrueIf set to true, users will be able to login with username and password.
DISABLE_NEW_SSO_USERSfalseIf set to true, new users will not be able to login with SSO.

Digital Ocean Spaces/AWS S3 Settings

Digital Ocean Spaces uses AWS S3 behind the scene, so you can also choose to store your STORAGE_FOLDER files in Digital Ocean Spaces or Amazon S3:

Environment VariableDefaultDescription
SPACES_KEY--
SPACES_SECRET--
SPACES_ENDPOINT--
SPACES_BUCKET_NAME--
SPACES_REGION--
SPACES_FORCE_PATH_STYLE--

SMTP Settings

The variables you need to configure to enable password recovery without admin interfering, email verification, etc...

Environment VariableDefaultDescription
NEXT_PUBLIC_EMAIL_PROVIDER-If set to true, email will be enabled and you'll need to define the next two variables below.
EMAIL_FROM-The email that will send the verification emails.
EMAIL_SERVER-That sensitive string that starts with smtp://... .