From a8210aa62d84db1ef135a39033b873f8bc0d12e4 Mon Sep 17 00:00:00 2001 From: Dumitru Botezatu Date: Sat, 13 Apr 2024 16:47:33 +0300 Subject: [PATCH 1/2] optimized env --- .env.example | 48 ++++++++++++++++++------------------------------ README.md | 10 ++++++---- config/queue.php | 2 +- 3 files changed, 25 insertions(+), 35 deletions(-) diff --git a/.env.example b/.env.example index 5a5682f..ebaf256 100644 --- a/.env.example +++ b/.env.example @@ -1,20 +1,17 @@ -# You app name. It is usually equal to the name of your project. -APP_NAME='Mixpost Enterprise' +# This value is the name of your application. +APP_NAME='Mixpost' -# Your application environment. If you are ready for production, set 'production' -APP_ENV=local - -# Is used to encrypt and decrypt sensitive data. Generate it with: 'php artisan key:generate' +# Key used to encrypt and decrypt sensitive data. Generate this using the following tool: +# https://mixpost.app/tools/encryption-key-generator APP_KEY= -# Debug mode. If the environment is in production, we recommend setting it to 'false' -APP_DEBUG=true +# Debug mode setting. Set to 'false' for production environments. +APP_DEBUG=false -# URL of your application. Important: it is not allowed to be a slash at the end of the url. -APP_URL=http://localhost +# Full application URL. Important: it is not allowed to be a slash at the end of the url. +APP_URL=https://example.com -# Mysql connection setup -DB_CONNECTION=mysql # Change this only if you know what you are doing +# MySQL connection setup DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=mixpost_db @@ -26,30 +23,15 @@ REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 -# Default Queue Connection Name -QUEUE_CONNECTION=redis - -# Default Cache Store -CACHE_DRIVER=redis - -# Default Session Driver -SESSION_DRIVER=redis - -# Default log channel for Mixpost -MIXPOST_LOG_CHANNEL=mixpost - # This is the path which Mixpost will use to load its core routes and assets MIXPOST_CORE_PATH=mixpost +# Define log channel +MIXPOST_LOG_CHANNEL=mixpost + # The disk on which to store added files. Disks: "public", "s3". For "s3" you should fill in the AWS_* credentials below. MIXPOST_DISK=public -# AWS Credentials -AWS_ACCESS_KEY_ID= -AWS_SECRET_ACCESS_KEY= -AWS_DEFAULT_REGION= -AWS_BUCKET= - # SMTP MAIL_MAILER=smtp MAIL_HOST=smtp.mailgun.org @@ -60,5 +42,11 @@ MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" +# AWS Credentials +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION= +AWS_BUCKET= + # Sentry SENTRY_LARAVEL_DSN=null \ No newline at end of file diff --git a/README.md b/README.md index 1b0f2ec..6055644 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,17 @@ # Welcome to Mixpost Enterprise Launch your own white-labeled SaaS and start generating revenue. -Mixpost it's the coolest Self-hosted social media management software. Easily create, schedule, publish, and manage social media content in one place, with no limits or monthly subscription fees. More details on [mixpost.app](https://mixpost.app/). +Mixpost it's the coolest Self-hosted social media management software. Easily create, schedule, publish, and manage social media content in one place, with no limits or monthly subscription fees. + +More details on [mixpost.app](https://mixpost.app/) Join our community: -- [Discord](https://discord.gg/5YdseZnK2Z) -- [Facebook Private Group](https://www.facebook.com/groups/inovector) +- [Discord](https://mixpost.app/discord) +- [Facebook Private Group](https://www.facebook.com/groups/getmixpost) ## Installation In order to install Mixpost Enterprise you'll need to [get a license](https://mixpost.app/) first. -Read our [documentation](https://docs.inovector.com/books/mixpost-enterprise/page/as-a-standalone-app) on how to get started. \ No newline at end of file +Read our [documentation](https://docs.mixpost.app/enterprise) on how to get started. \ No newline at end of file diff --git a/config/queue.php b/config/queue.php index 5376903..88480dd 100644 --- a/config/queue.php +++ b/config/queue.php @@ -13,7 +13,7 @@ | */ - 'default' => env('QUEUE_CONNECTION', 'sync'), + 'default' => env('QUEUE_CONNECTION', 'redis'), /* |-------------------------------------------------------------------------- From 132ecd19447495e786dc36e2c947a448f10e3757 Mon Sep 17 00:00:00 2001 From: Dumitru Botezatu Date: Fri, 3 May 2024 12:50:22 +0300 Subject: [PATCH 2/2] cache default redis --- config/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cache.php b/config/cache.php index 33bb295..b82efdd 100644 --- a/config/cache.php +++ b/config/cache.php @@ -15,7 +15,7 @@ | */ - 'default' => env('CACHE_DRIVER', 'file'), + 'default' => env('CACHE_DRIVER', 'redis'), /* |--------------------------------------------------------------------------