This commit is contained in:
Lizandro Guarnizo
2026-06-05 19:37:33 -05:00
parent 38c59d140a
commit b9d019d6de
3 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up', health: '/up',
) )
->withMiddleware(function (Middleware $middleware) { ->withMiddleware(function (Middleware $middleware) {
// $middleware->trustProxies(at: '*');
}) })
->withExceptions(function (Exceptions $exceptions) { ->withExceptions(function (Exceptions $exceptions) {
// //
+16
View File
@@ -1,4 +1,20 @@
#!/bin/sh #!/bin/sh
set -e set -e
# Ensure storage directories exist (for volume mounts)
mkdir -p storage/framework/views \
storage/framework/cache \
storage/framework/sessions \
storage/logs \
storage/app/public
# Recreate symlink (lost on empty volume)
if [ ! -L public/storage ]; then
ln -sf ../storage/app/public public/storage
fi
# Ensure writable
chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
exec "$@" exec "$@"
+1
View File
@@ -30,6 +30,7 @@ server {
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param APP_ENV production; fastcgi_param APP_ENV production;
fastcgi_param HTTPS on;
} }
location ~ /\.(?!well-known).* { location ~ /\.(?!well-known).* {