From 40868a74cef0b5c7bbb83ef8cb1531e183742709 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Fri, 10 May 2024 18:47:55 +0300 Subject: [PATCH] update --- web/app/Console/Commands/SetIniSettings.php | 35 +++++++++++ web/composer.json | 1 + web/composer.lock | 55 ++++++++++++++++- web/phyre-config.ini.example | 68 +++++++++++++++++++++ 4 files changed, 157 insertions(+), 2 deletions(-) create mode 100644 web/app/Console/Commands/SetIniSettings.php create mode 100644 web/phyre-config.ini.example diff --git a/web/app/Console/Commands/SetIniSettings.php b/web/app/Console/Commands/SetIniSettings.php new file mode 100644 index 0000000..512aeb0 --- /dev/null +++ b/web/app/Console/Commands/SetIniSettings.php @@ -0,0 +1,35 @@ +setValue('', '', 'phyre'); +// $ini->save(); + + } +} diff --git a/web/composer.json b/web/composer.json index 9a773e1..3cc6fea 100644 --- a/web/composer.json +++ b/web/composer.json @@ -16,6 +16,7 @@ "filament/filament": "^3.0", "guzzlehttp/guzzle": "^7.2", "jaocero/radio-deck": "^1.2", + "jelix/inifile": "^3.4", "laravel/framework": "^10.10", "laravel/sanctum": "^3.3", "laravel/tinker": "^2.8", diff --git a/web/composer.lock b/web/composer.lock index 735f062..f77b72a 100644 --- a/web/composer.lock +++ b/web/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e38d5d5d0adae1e32ecf184f9c90f933", + "content-hash": "bc8f7e167f22d774934a3b1001c2fd83", "packages": [ { "name": "acmephp/core", @@ -2666,6 +2666,57 @@ ], "time": "2024-03-15T10:17:55+00:00" }, + { + "name": "jelix/inifile", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/jelix/inifile.git", + "reference": "645adc1a7abd0c21377f557c29eb5a4f723ab3c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jelix/inifile/zipball/645adc1a7abd0c21377f557c29eb5a4f723ab3c9", + "reference": "645adc1a7abd0c21377f557c29eb5a4f723ab3c9", + "shasum": "" + }, + "require": { + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "8.5.* || 11.0.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Jelix\\IniFile\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "authors": [ + { + "name": "Laurent Jouanneau", + "email": "laurent@jelix.org" + }, + { + "name": "Loic Mathaud" + } + ], + "description": "classes to read and modify ini files by preserving comments and empty lines", + "homepage": "http://jelix.org", + "keywords": [ + "files", + "ini" + ], + "support": { + "issues": "https://github.com/jelix/inifile/issues", + "source": "https://github.com/jelix/inifile/tree/v3.4.0" + }, + "time": "2024-02-13T16:19:28+00:00" + }, { "name": "kirschbaum-development/eloquent-power-joins", "version": "3.5.6", @@ -12383,5 +12434,5 @@ "php": "^8.1" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.2.0" } diff --git a/web/phyre-config.ini.example b/web/phyre-config.ini.example new file mode 100644 index 0000000..a713a57 --- /dev/null +++ b/web/phyre-config.ini.example @@ -0,0 +1,68 @@ +[app] +APP_NAME=PHYRE_PANEL +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL="http://localhost" + +[log] +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +[database] +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE= +DB_USERNAME= +DB_PASSWORD= +MYSQL_HOST=127.0.0.1 +MYSQL_PORT=3306 +MYSQL_ROOT_USERNAME= +MYSQL_ROOT_PASSWORD= + +[cache] +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 +MEMCACHED_HOST=127.0.0.1 +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +[mail] +MAIL_MAILER=smtp +MAIL_HOST=mailpit +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME=PHYRE_PANEL + +[aws] +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +[pusher] +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_APP_NAME=PHYRE_PANEL +VITE_PUSHER_APP_KEY= +VITE_PUSHER_HOST= +VITE_PUSHER_PORT=443 +VITE_PUSHER_SCHEME=https +VITE_PUSHER_APP_CLUSTER=mt1