anonaddy / docker

AnonAddy Docker image
MIT License
519 stars 56 forks source link

addy.io 1.2.0 #278

Closed crazy-max closed 6 months ago

crazy-max commented 6 months ago

@willbrowningme https://github.com/anonaddy/docker/actions/runs/9103091858/job/25024173671?pr=278#step:8:135

> sed: /var/www/anonaddy/app/Http/Middleware/TrustProxies.php: No such file or directory
[cont-init.d] 13-config-anonaddy.sh: exited 1.

Looks like app/Http/Middleware/TrustProxies.php has been removed in 1.2.0 since Laravel 11: https://github.com/anonaddy/anonaddy/commit/5cf59c4f7d59d4ab26f2b7748272d4e348183427#diff-487dcf55237970753ab8e476dfee655e48dd8bbf200f34e8bf404ef49f3090a5

Is there an alternative to it or fine to remove this here?:: https://github.com/anonaddy/docker/blob/fd6c9fba9578499f7704047d628c59556d9dcbc7/rootfs/etc/cont-init.d/13-config-anonaddy.sh#L90-L91

willbrowningme commented 6 months ago

TrustProxies is now included as default global middleware in Laravel 11 - https://laravel.com/docs/11.x/middleware#global-middleware.

So it would be at /var/www/anonaddy/app/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php