Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addy.io 1.2.0 #278

Merged
merged 1 commit into from
May 16, 2024
Merged

addy.io 1.2.0 #278

merged 1 commit into from
May 16, 2024

Conversation

crazy-max
Copy link
Member

No description provided.

@crazy-max
Copy link
Member Author

crazy-max commented May 15, 2024

@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: anonaddy/anonaddy@5cf59c4#diff-487dcf55237970753ab8e476dfee655e48dd8bbf200f34e8bf404ef49f3090a5

Is there an alternative to it or fine to remove this here?::

echo "Trust all proxies"
sed -i "s|^ protected \$proxies.*| protected \$proxies = '\*';|g" /var/www/anonaddy/app/Http/Middleware/TrustProxies.php

@willbrowningme
Copy link
Member

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

@crazy-max crazy-max merged commit d865fbb into anonaddy:master May 16, 2024
2 checks passed
@crazy-max crazy-max deleted the update branch May 16, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants