Local Keeps Reseting Nginx Config

Bug Summary

When you edit the Site nginx config file, to do things like increasing client body size it does not work, so when you go to the root local nginx config file and change it there, then it reset that file when you reboot local, so no way to make the setting efective. I noted this in Local 9.2

Steps to reproduce

Get local going, get a 3GB All in One Migration save, install All In One Migration, try to upload, it would fail, set client_max_body_size 4000M; on the nginx config from your site files, also php.ini with upload_max_filesize = 4000M, memory_limit = 5256M, post_max_size = 4126M

Then it would not work eighter, like the nginx setting is not working effectively. Then search for the local root level nginx config, on Library / Application Support / Local / run / {randmon key for your site} / nginx / config

Set the setting there, next time you reboot local this setting is gone

As precisely as you can, list the steps it takes to reliably reproduce the issue.

If you downgrade to Local 9.0.1 it works like it should!

Environment Info

Describe your environment.

Macbook Pro M1

Supporting info

Local 9.2.0
Can’t get the log because i downgraded to Local 9.01

Hi @Dago

When you make your changes and then save them, instead of completely rebooting Local have you tried just stopping and then starting your site again? That should be enough for Local to recompile the changes you made.

Keep us posted and we’d be happy to help further!

Hi Nick, I downgraded to Local 9.01 and that weird behavior is gone, now i can edit conf files and they take effect. With simple stop/start site.

Glad to hear that @Dago!

If you feel like trying to update again we recently dropped version 9.2.3 if you want to try it:

If you still run into problems again can you share a copy of your full Local Log with us? There are some different ways to access and share Local Logs. For us to be able to troubleshoot thoroughly, please click the Download Local Logs button from the Support tab in Local. This will generate a zip archive that contains the Local log along with some other diagnostic information to help quickly zero in on any issues that Local is encountering.