TheOpenPresenter
  • Introduction
    • Welcome
    • Motivation & Challenges
    • System Architecture
    • Terminologies
    • Server Communication
    • Project Topology
  • Development
    • Quickstart
    • Static files
    • Media Storage
  • Plugins
    • Introduction
    • Official Plugins
      • Google Slides
      • Lyrics Presenter
        • Lyrics compatibility
      • Video Player
      • Audio Recorder
    • Developing a Plugin
      • Plugin API
        • Yjs
          • Awareness
          • Scene
          • Renderer
        • Backend
          • Yjs Handler
          • Loading Frontend
          • Security
        • Frontend
          • Remote
          • Renderer
        • Media
          • Server Plugin API
          • Frontend
            • Tus
            • Form Data
        • TRPC
        • Database
      • Audio
      • Viewer State
      • Notifying Errors
      • Caveats
        • Sharing dependencies
        • Cross-over between plugins
      • Performance
  • API Reference
    • Plugin Context
  • Guide
    • Playing Audio
    • Listen to scene changes
  • Scratch Pad
    • Ambition
    • Background music
  • Environment Variables
  • External
    • Page 1
Powered by GitBook
On this page

Environment Variables

The server can be configured by passing in different environment variables. Here are some of them:

DISABLE_HSTS

Enabling this flag will disable HSTS from helmet. This is useful for local deployment and our desktop build so that users doesn't have to use HTTPS to access the app.

AUTO_LOGIN

Setting this to "1" will automatically create an anonymous user and use that to authenticate every client. This is useful in deployments where the concept of user is redundant like our desktop build.

ALLOW_ANY_ORIGIN

When enabled, we will relax security when being accessed from a random origin. Useful for local deployment like our desktop build.

UPLOADS_PATH

When using the file storage, you can use this property to set the folder where the files will be saved. Otherwise, it will default to an uploads folder in the root directory.

PLUGINS_PATH

The folder where plugins will be loaded from. The default is to a loadedPlugins folder in the root directory.

PreviousBackground musicNextPage 1

Last updated 3 months ago