Skip to content

Midback Custom Settings

Dyoniso edited this page Feb 17, 2022 · 7 revisions

The default configuration env file:

SERVER_PORT=5000
HOSTNAME=127.0.0.1
DATABASE_URL=postgres://postgres:X-ADMIN_PASSWORD@localhost:5432/midback
MB_MAX_FILES=8000
MB_PAGE_SIZE=80
MB_ADS_KEY=1753969
MB_FILES_ACCESS_URL=/files
MB_ADMIN_PASSWORD=X_ADMIN_PASSWORD
MB_HOLIDAYS_RANGE=8
MB_HOLIDAYS_CYCLE=true
MB_GOAL_CYCLE=true
MB_VIP_CYCLE=true
MB_SAME_FILES=false
MB_PASSPORT=true
MB_PUBLIC_POST=true

Some env settings are customized in Midback like:

  1. MB_PUBLIC_POST Defines whether posting files will be public or restricted to admin
  2. MB_PASSPORT Defines whether or not a user should go through the passport screen
  3. MB_SAME_FILES Defines whether Midback accepts files from the same source
  4. MB_VIP_CYCLE Activate or Deactivate the VIP system
  5. MB_GOAL_CYCLE Activate or Deactivate the Goal system
  6. MB_HOLIDAYS_CYCLE Activate or Deactivate the Holidays system
  7. MB_HOLIDAYS_RANGE Maximum length of days after the holidays system
  8. MB_ADMIN_PASSWORD Password you will use to mod the MidBack
  9. MB_FILES_ACCESS_URL Folder name where the files will be saved
  10. MB_ADS_KEY Your A-ADS User Key. (A-ADS registration required)
  11. MB_PAGE_SIZE The number of files each page will render
  12. MB_MAX_FILES Maximum amount each board will support
  13. HOSTNAME Hostname of server node
  14. DATABASE_URL Location of your postgresql database
  15. PORT Port that the node server will listen to

See the status screen for a better view of the settings:

Clone this wiki locally