1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00
Commit Graph

19 Commits

Author SHA1 Message Date
Matt Stauffer
7deb886b58 Revert "Increase nginx buffer sizes in dev"
This reverts commit 536e59990b.
2019-09-10 20:32:30 -04:00
Matt Stauffer
6170995abb Merge pull request #819 from drbyte/forge-matchup2-logs
Turn off logging of hits to robots.txt and favicon.ico
2019-09-10 16:20:56 -04:00
Matt Stauffer
1ebb212413 Merge pull request #813 from drbyte/larger-buffers
Increase nginx buffer sizes in dev
2019-09-10 16:19:08 -04:00
Chris Brown
536e59990b Increase nginx buffer sizes in dev
These larger buffer sizes accommodate larger requests that are often complained about in Valet support issues.
These updates are inspired by common configs in Homestead.

I've been using these in my local Valet config for 4+ months, without any negative side-effects.

Edit: commented-out several, and made consistent with Forge defaults
2019-09-09 17:42:00 -04:00
Chris Brown
d269621e98 Turn off logging of hits to robots.txt and favicon.ico
A long-requested adjustment to Valet is to bypass the logging of robots.txt and favicon.ico hits. Particularly when keeping an Ngrok session alive.

This update is consistent with default logging settings in Forge.
2019-09-09 17:29:48 -04:00
Chris Brown
fcd73d73bc Improve security by listening on 127.0.0.1 only
Fixes #772

I've been using this config change since Aug 17, 2019, without any negative side-effects.
All Valet services continue to work properly, and Valet Share still works just as expected.

If someone were to have a challenge with it, there's an easy downgrade: just remove the `127.0.0.1:` from these files, and run `valet tld test` to rebuild the individual site configs. Or just manually edit the `~/.config/valet/Nginx` site file manually.
2019-09-07 17:44:19 -04:00
Sahib J. Leo
001058414b #691 Surround with quotes all paths which might contain blank spaces. 2018-12-27 11:24:41 -05:00
Kim Ravn Hansen
b8bfe077b4 Ensure 128mb max client body size.
client_max_body_size does not propagate down from the http context into
the server context.

See this stack overflow for further details on the issue:
https://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect

This fix ensures that the max client body size is always the default
128mb as specified in nginx.conf.
2017-06-22 05:55:58 +02:00
Adam Wathan
fda0d3440d Fix issue with favicon 404s 2017-06-21 09:12:46 -04:00
Chris Brown
bb59e1da2d Fix large-upload problems by setting PHP limits and Nginx max size
- Sets `client_max_body_size 128M` in `http` section of `nginx.conf`  so it covers all configs
- Adds `php-memory-limits.conf` to `php-fpm` conf folder, to set `memory_limit`, `upload_max_filesize`, `post_max_size` all to 128M

(Updates #253 by moving config location to cover all, since #253 didn't cover secure configs, etc)
2016-12-24 15:43:11 -05:00
Jürgen van Dijk
3704eb659c Add client_max_body_size to config (#253)
This will prevent `Request Entity Too Large` errors when uploading files.
2016-12-14 14:11:46 -06:00
Mark van Eijk
5b5f1af996 Fix for query string in PHP (#259)
When retrieving the query string in your app, it's twice the value it should be.

For example I have a request like "/overview?page=1" when I use request()->server('QUERY_STRING') I get "page=1&page=1" instead of "page=1".

Removing the ?$querystring for the Nginx config in the rewrite directive fixes this.
2016-12-14 14:11:27 -06:00
Adam Wathan
6727e43288 Use UUID for static asset path instead of "static" 2016-12-12 15:46:09 -05:00
Taylor Otwell
a501ebcd5b fix broken change 2016-12-09 09:20:28 -06:00
Taylor Otwell
fba8eb7602 fix nginx support 2016-12-08 08:32:55 -05:00
Adam Wathan
4c86e351a2 Use socket, store in valet home and set loose permissions 2016-12-08 08:32:54 -05:00
Adam Wathan
2ac1711eef Listen on port instead of socket 2016-12-08 08:32:54 -05:00
Adam Wathan
0da0fb3b1b Grueing around 2016-12-08 08:32:54 -05:00
Adam Wathan
aeb2a4423b Add stub 2016-12-08 08:32:22 -05:00