Initial commit: OAuth IAM Laravel application
Laravel-based OAuth/IAM service with Passport, Vue 3 frontend, and Docker Compose setup for local and production deployment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
24
docker/php/entrypoint.sh
Normal file
24
docker/php/entrypoint.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
if [ "$CONTAINER_ROLE" = "app" ]; then
|
||||
chown -R www-data:www-data storage bootstrap/cache
|
||||
|
||||
if [ ! -f storage/oauth-private.key ]; then
|
||||
echo "Generando claves de Passport (primer arranque)..."
|
||||
su-exec www-data php artisan passport:keys
|
||||
fi
|
||||
|
||||
echo "Aplicando migraciones..."
|
||||
su-exec www-data php artisan migrate --force
|
||||
|
||||
echo "Cacheando configuración, rutas y vistas..."
|
||||
su-exec www-data php artisan config:cache
|
||||
su-exec www-data php artisan route:cache
|
||||
su-exec www-data php artisan view:cache
|
||||
su-exec www-data php artisan l5-swagger:generate
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
7
docker/php/opcache.ini
Normal file
7
docker/php/opcache.ini
Normal file
@@ -0,0 +1,7 @@
|
||||
opcache.enable = 1
|
||||
opcache.enable_cli = 0
|
||||
opcache.memory_consumption = 128
|
||||
opcache.interned_strings_buffer = 16
|
||||
opcache.max_accelerated_files = 20000
|
||||
opcache.validate_timestamps = 0
|
||||
opcache.save_comments = 1
|
||||
8
docker/php/production.ini
Normal file
8
docker/php/production.ini
Normal file
@@ -0,0 +1,8 @@
|
||||
memory_limit = 256M
|
||||
upload_max_filesize = 20M
|
||||
post_max_size = 20M
|
||||
max_execution_time = 60
|
||||
expose_php = Off
|
||||
display_errors = Off
|
||||
log_errors = On
|
||||
error_log = /proc/self/fd/2
|
||||
Reference in New Issue
Block a user