Merge branch 'develop'

This commit is contained in:
Refringe 2024-06-20 16:42:51 -04:00
commit 9524e14126
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k
5 changed files with 57 additions and 36 deletions

View File

@ -1,40 +1,47 @@
APP_NAME="The Forge" APP_NAME="The Forge"
APP_ENV=local APP_ENV=local
# Generate a new key with: `php artisan key:generate`
APP_KEY= APP_KEY=
APP_DEBUG=true APP_DEBUG=true
APP_TIMEZONE=UTC APP_TIMEZONE=UTC
APP_URL=http://localhost APP_URL=https://localhost
APP_LOCALE=en APP_LOCALE=en
APP_FALLBACK_LOCALE=en APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US APP_FAKER_LOCALE=en_US
VITE_APP_NAME="${APP_NAME}" VITE_APP_NAME="${APP_NAME}"
# Much higher in production. # Much higher in production
BCRYPT_ROUNDS=12 BCRYPT_ROUNDS=4
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_STACK=single LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug LOG_LEVEL=debug
# Due to the hub import script, only MySQL is supported at this time. # Only MySQL is supported at this time.
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=mysql DB_HOST=mysql
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=forge DB_DATABASE=forge
DB_USERNAME=forge DB_USERNAME=forge
DB_PASSWORD=password DB_PASSWORD=password
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_0900_ai_ci
# This is only needed if you are running the app:import-hub command. # This is only needed if you are running the `artisan app:import-hub` command.
# For normal development you should just seed the database with fake data: # For normal development you should just seed the database with fake data by
# `php artisan migrate:fresh --seed` # running the command: `php artisan migrate:fresh --seed`
DB_HUB_CONNECTION=mysql DB_HUB_CONNECTION=mysql
DB_HUB_HOST= DB_HUB_HOST=
DB_HUB_PORT= DB_HUB_PORT=
DB_HUB_DATABASE= DB_HUB_DATABASE=
DB_HUB_USERNAME= DB_HUB_USERNAME=
DB_HUB_PASSWORD= DB_HUB_PASSWORD=
DB_HUB_CHARSET=utf8mb4
DB_HUB_COLLATION=utf8mb4_0900_ai_ci
SESSION_DRIVER=redis SESSION_DRIVER=redis
SESSION_STORE=redis SESSION_STORE=redis
@ -44,11 +51,14 @@ SESSION_ENCRYPT=false
SESSION_PATH=/ SESSION_PATH=/
SESSION_DOMAIN=null SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local FILESYSTEM_DISK=local
ASSET_URL=http://localhost/storage ASSET_URL=http://localhost/storage
ASSET_URL_LIVEWIRE=/vendor/livewire/livewire.js ASSET_URL_LIVEWIRE=/vendor/livewire/livewire.js
CACHE_STORE=redis CACHE_STORE=redis
QUEUE_CONNECTION=redis QUEUE_CONNECTION=redis
REDIS_HOST=redis REDIS_HOST=redis
@ -59,6 +69,7 @@ REDIS_CACHE_CONNECTION=cache
SCOUT_QUEUE=true SCOUT_QUEUE=true
SCOUT_DRIVER=meilisearch SCOUT_DRIVER=meilisearch
MEILISEARCH_HOST=http://meilisearch:7700 MEILISEARCH_HOST=http://meilisearch:7700
MEILISEARCH_KEY= MEILISEARCH_KEY=
MEILISEARCH_NO_ANALYTICS=true MEILISEARCH_NO_ANALYTICS=true
@ -73,7 +84,7 @@ MAIL_FROM_NAME="${APP_NAME}"
NOVA_LICENSE_KEY= NOVA_LICENSE_KEY=
SAIL_XDEBUG_MODE=develop,debug,coverage
OCTANE_SERVER=frankenphp OCTANE_SERVER=frankenphp
OCTANE_HTTPS=true OCTANE_HTTPS=true
SAIL_XDEBUG_MODE=develop,debug,coverage

32
.github/README.md vendored
View File

@ -31,18 +31,25 @@ Once the Docker containers are running with Sail you can access the application
| Service | Authentication | Access Via Host | | Service | Authentication | Access Via Host |
|----------------------------------|----------------|-----------------------------| |----------------------------------|----------------|-----------------------------|
| Administration Panel (Nova) | Via User Role | <https://localhost/nova> | | Administration Panel (Nova*) | Via User Role | <https://localhost/nova> |
| Redis Queue Management (Horizon) | Via User Role | <https://localhost/horizon> | | Redis Queue Management (Horizon) | Via User Role | <https://localhost/horizon> |
| Website Status (Pulse) | Via User Role | <https://localhost/pulse> | | Website Status (Pulse) | Via User Role | <https://localhost/pulse> |
| Meilisearch WebUI | Local Only | <http://localhost:7700> | | Meilisearch WebUI | Local Only | <http://localhost:7700> |
| Mailpit WebUI | Local Only | <http://localhost:8025> | | Mailpit WebUI | Local Only | <http://localhost:8025> |
<sup>*Nova may be replaced shortly due to License issues.</sup>
Most of these connection settings should already be configured in the `.env.example` file. Simply save the `.env.example` file as `.env` and adjust further settings as needed. Most of these connection settings should already be configured in the `.env.example` file. Simply save the `.env.example` file as `.env` and adjust further settings as needed.
### Basic Usage Examples ### Basic Usage Examples
Here are some basic commands to get started with Forge: Here are some basic commands to get started with Forge:
```
# Start the Docker containers in detached mode:
./vendor/bin/sail up -d
```
``` ```
# View all of the available Artisan commands: # View all of the available Artisan commands:
./vendor/bin/sail artisan ./vendor/bin/sail artisan
@ -54,13 +61,18 @@ Here are some basic commands to get started with Forge:
``` ```
``` ```
# Run Laravel Horizon (the queue monitor): # Run Laravel Horizon (the queue workers/monitor):
./vendor/bin/sail artisan horizon ./vendor/bin/sail artisan horizon
``` ```
``` ```
# Start the local # Install NPM dependencies from within the container:
./vendor/bin/sail artisan horizon ./vendor/bin/sail npm install
```
```
# Start the development server:
./vendor/bin/sail npm run dev
``` ```
### More Information ### More Information
@ -79,14 +91,18 @@ Informal discussion regarding bugs, new features, and implementation of existing
The `main` branch is the default branch for Forge. This branch is used for the latest stable release of the site. The `develop` branch is used for the latest development changes. All feature branches should be based on the `develop` branch. All pull requests should target the `develop` branch. The `main` branch is the default branch for Forge. This branch is used for the latest stable release of the site. The `develop` branch is used for the latest development changes. All feature branches should be based on the `develop` branch. All pull requests should target the `develop` branch.
## Coding Style
Forge follows the PSR-2 coding standard and the PSR-4 autoloading standard. We use an automated Laravel Pint action to enforce the coding standard, though it's suggested to run your code changes through Pint before contributing. This can be done by configuring your IDE to format with Pint on save, or manually by running the following command:
```
./vendor/bin/sail pint
```
## Security Vulnerabilities ## Security Vulnerabilities
If you discover a security vulnerability within Forge, please email Refringe at me@refringe.com. All security vulnerabilities will be promptly addressed. If you discover a security vulnerability within Forge, please email Refringe at me@refringe.com. All security vulnerabilities will be promptly addressed.
## Coding Style
Forge follows the PSR-2 coding standard and the PSR-4 autoloading standard. We use an automated Laravel Pint action to enforce the coding standard, though it's suggested to run your code changes through Pint before contributing.
## Code of Conduct ## Code of Conduct
The Forge development code of conduct is derived from the Ruby code of conduct. Any violations of the code of conduct may be reported to Refringe at me@refringe.com. The Forge development code of conduct is derived from the Ruby code of conduct. Any violations of the code of conduct may be reported to Refringe at me@refringe.com.

View File

@ -3,6 +3,7 @@
use Illuminate\Foundation\Application; use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware; use Illuminate\Foundation\Configuration\Middleware;
use Mchev\Banhammer\Middleware\IPBanned;
return Application::configure(basePath: dirname(__DIR__)) return Application::configure(basePath: dirname(__DIR__))
->withRouting( ->withRouting(
@ -12,7 +13,7 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up', health: '/up',
) )
->withMiddleware(function (Middleware $middleware) { ->withMiddleware(function (Middleware $middleware) {
//$middleware->append(IPBanned::class); $middleware->append(IPBanned::class);
}) })
->withExceptions(function (Exceptions $exceptions) { ->withExceptions(function (Exceptions $exceptions) {
// //

22
composer.lock generated
View File

@ -62,16 +62,16 @@
}, },
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.314.5", "version": "3.314.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "0c1adaa22c3d333ac20dcc87dd355e9a013a05fd" "reference": "d04da330b0201edab71edd33a03b8d5ad6e4a313"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0c1adaa22c3d333ac20dcc87dd355e9a013a05fd", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/d04da330b0201edab71edd33a03b8d5ad6e4a313",
"reference": "0c1adaa22c3d333ac20dcc87dd355e9a013a05fd", "reference": "d04da330b0201edab71edd33a03b8d5ad6e4a313",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -151,9 +151,9 @@
"support": { "support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues", "issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.314.5" "source": "https://github.com/aws/aws-sdk-php/tree/3.314.6"
}, },
"time": "2024-06-19T18:11:48+00:00" "time": "2024-06-20T18:09:51+00:00"
}, },
{ {
"name": "bacon/bacon-qr-code", "name": "bacon/bacon-qr-code",
@ -3989,16 +3989,16 @@
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
"version": "3.5.0", "version": "3.6.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/briannesbitt/Carbon.git", "url": "https://github.com/briannesbitt/Carbon.git",
"reference": "415782b7e48223342f1a616c16c45a95b15b2318" "reference": "39c8ef752db6865717cc3fba63970c16f057982c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/415782b7e48223342f1a616c16c45a95b15b2318", "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/39c8ef752db6865717cc3fba63970c16f057982c",
"reference": "415782b7e48223342f1a616c16c45a95b15b2318", "reference": "39c8ef752db6865717cc3fba63970c16f057982c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4091,7 +4091,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-06-03T17:25:54+00:00" "time": "2024-06-20T15:52:59+00:00"
}, },
{ {
"name": "nette/schema", "name": "nette/schema",

View File

@ -31,7 +31,6 @@ services:
- redis - redis
- meilisearch - meilisearch
- mailpit - mailpit
- memcached
mysql: mysql:
image: 'mysql/mysql-server:8.0' image: 'mysql/mysql-server:8.0'
ports: ports:
@ -97,12 +96,6 @@ services:
- '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025' - '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025'
networks: networks:
- sail - sail
memcached:
image: 'memcached:alpine'
ports:
- '${FORWARD_MEMCACHED_PORT:-11211}:11211'
networks:
- sail
networks: networks:
sail: sail:
driver: bridge driver: bridge