11 Commits

Author SHA1 Message Date
fernando b574ae1ed3 Fix Bad Gateway: PHP-FPM via Unix socket + logs en supervisord 2026-05-11 18:23:16 -06:00
fernando edb1c859a0 Modificación de header 2026-05-11 02:48:22 -06:00
fernando 6ecb23746c Modificación de supervisor para evitar conflicto de puertos 2026-05-11 02:40:44 -06:00
fernando 3fe47d5b1d Modificación directa a php comandos para incremento de memoria de subida de archivos 2026-05-11 02:33:52 -06:00
Fernando ca2813ade3 Change Laravel server port from 8080 to 8081 2026-05-11 00:16:18 -06:00
fernando 7049e8e1d3 Cambio del supervisor 2026-05-09 10:22:51 -06:00
fernando 27af72b26e Force PHP upload limits via -d flags and fix Dockerfile layer order
Pass upload_max_filesize=50M and post_max_size=55M directly with -d
flags on every php process in supervisord. This is guaranteed to apply
regardless of ini scanning order or Docker layer caching.

Also move COPY docker/php.ini before COPY . . so the conf.d file is
always placed before the app code is copied, ensuring Docker does not
use a stale cached layer that skips the ini file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 08:20:46 -06:00
fernando 9851c887ec Raise all file upload limits to 50MB across the stack
PHP (docker/php.ini via conf.d — loaded automatically, no -c flag needed):
  upload_max_filesize 2M -> 50M
  post_max_size       8M -> 55M

Nginx: client_max_body_size 25M -> 55M

Livewire (config/livewire.php published):
  temporary_file_upload rules max 12MB -> 50MB (max:51200)

Laravel validation rules (all in KB):
  profile photo:        5120 (5MB)  -> 51200 (50MB)
  posts image:          5120 (5MB)  -> 51200 (50MB)
  anuncios image:       5120 (5MB)  -> 51200 (50MB)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 08:12:33 -06:00
fernando ff5b6f5eec Fix file upload limit over 2MB in production with HTTPS
- Use printf instead of echo to correctly write php.ini with newlines
  (Alpine ash echo does not interpret \n, leaving the file malformed
  and PHP falling back to its 2MB default)
- Add nginx.conf with client_max_body_size 25M as front-end proxy
- Start nginx on port 8080 via supervisord; move artisan serve to
  internal port 8081 so nginx can proxy requests with proper limits

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 07:41:52 -06:00
fernando e7ca2c29f0 Modificacion del supervisor y docker file postmaxSize 2026-05-09 07:26:47 -06:00
Fernando 0d6e0d7a9f Add supervisord configuration for Laravel and Reverb 2026-05-02 21:35:28 -06:00