From 7e6316219a0d0f05fd0e2d88def9a27c57bbc10b Mon Sep 17 00:00:00 2001 From: cube Date: Fri, 8 May 2026 19:50:24 +0000 Subject: [PATCH] Update deployment instructions --- deployment-instructions.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/deployment-instructions.md b/deployment-instructions.md index ef482da..9e5b509 100644 --- a/deployment-instructions.md +++ b/deployment-instructions.md @@ -53,28 +53,32 @@ mkdir instance mkdir myriad/static/icons mkdir myriad/static/blinkies mkdir myriad/static/stamps +mkdir myriad/static/misc mkdir myriad/static/tmp ``` -Copy this default configuration: - -``` -REGISTRATION = True # Make sure to disable in production after setting up first user!!! -ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'} -ICON_UPLOAD_FOLDER = 'myriad/static/icons' -BLINKIES_UPLOAD_FOLDER = 'myriad/static/blinkies' -STAMPS_UPLOAD_FOLDER = 'myriad/static/stamps' -THEMES_FOLDER = 'myriad/static/themes' -TMP_FOLDER = 'myriad/static/tmp' -``` - Create the config file: ``` sudo nano instance/config.py ``` -Then paste! Now save and exit. +Copy and paste this default configuration: + +``` +REGISTRATION = True # Make sure to disable in production +ICON_UPLOAD_FOLDER = 'myriad/static/icons' # where member icons will be stored +BLINKIES_UPLOAD_FOLDER = 'myriad/static/blinkies' # where blinkies will be stored +STAMPS_UPLOAD_FOLDER = 'myriad/static/stamps' # where stamps will be stored +MISC_UPLOAD_FOLDER = 'myriad/static/misc' # where misc image uploads will be stored +THEMES_FOLDER = 'myriad/static/themes' # all the theme css files are here +TMP_FOLDER = 'myriad/static/tmp' # required for exports +SYSTEM_NAME = 'Myriad' # will be shown in the title bar +PAGES_NAME = 'Read More...' # will be shown in the nav bar if using custom pages +SECRET_KEY = 'dev' # CHANGE THIS - see wiki for details + +``` +Now save and exit. (Ctrl+X and confirm the save) Generate a secret key, highlight it, and copy to the clipboard @@ -82,7 +86,7 @@ Generate a secret key, highlight it, and copy to the clipboard python -c 'import secrets; print(secrets.token_hex())' ``` -Go back to the config file, and create a new line: +Go back to the config file, and replace 'dev' in the SECRET_KEY: ``` sudo nano instance/config.py