Add nginx configuration update to docs
Steps to reproduce
After the upgrade to 1.3.0~rc1, visit any page.
What happens?
The server times out and throws a 504 with the following log in funkwhale-server
:
Jan 23 19:25:30 sakamoto gunicorn[3732]: 2023-01-23 18:25:30,095 django.request ERROR Internal Server Error: /index.html
Jan 23 19:25:30 sakamoto gunicorn[3732]: Traceback (most recent call last):
Jan 23 19:25:30 sakamoto gunicorn[3732]: File "/srv/funkwhale/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
Jan 23 19:25:30 sakamoto gunicorn[3732]: response = get_response(request)
Jan 23 19:25:30 sakamoto gunicorn[3732]: File "/srv/funkwhale/api/funkwhale_api/common/middleware.py", line 234, in __call__
Jan 23 19:25:30 sakamoto gunicorn[3732]: return serve_spa(request)
Jan 23 19:25:30 sakamoto gunicorn[3732]: File "/srv/funkwhale/api/funkwhale_api/common/middleware.py", line 34, in serve_spa
Jan 23 19:25:30 sakamoto gunicorn[3732]: html = get_spa_html(settings.FUNKWHALE_SPA_HTML_ROOT)
Jan 23 19:25:30 sakamoto gunicorn[3732]: File "/srv/funkwhale/api/funkwhale_api/common/middleware.py", line 108, in get_spa_html
Jan 23 19:25:30 sakamoto gunicorn[3732]: return get_spa_file(spa_url, "index.html")
Jan 23 19:25:30 sakamoto gunicorn[3732]: File "/srv/funkwhale/api/funkwhale_api/common/middleware.py", line 128, in get_spa_file
Jan 23 19:25:30 sakamoto gunicorn[3732]: response.raise_for_status()
Jan 23 19:25:30 sakamoto gunicorn[3732]: File "/srv/funkwhale/venv/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
Jan 23 19:25:30 sakamoto gunicorn[3732]: raise HTTPError(http_error_msg, response=self)
Jan 23 19:25:30 sakamoto gunicorn[3732]: requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://funk.firobe.fr/index.html
Possibly not relevant, other errors are thrown with the following pattern:
Jan 23 19:33:35 sakamoto gunicorn[3729]: 2023-01-23 18:33:35,189 asyncio ERROR Task exception was never retrieved
Jan 23 19:33:35 sakamoto gunicorn[3729]: future: <Task finished name='Task-48' coro=<Connection.disconnect() done, defined at /srv/funkwhale/venv/lib/python3.10/site-package>
Jan 23 19:33:35 sakamoto gunicorn[3729]: Traceback (most recent call last):
Jan 23 19:33:35 sakamoto gunicorn[3729]: File "/srv/funkwhale/venv/lib/python3.10/site-packages/redis/asyncio/connection.py", line 700, in disconnect
Jan 23 19:33:35 sakamoto gunicorn[3729]: await self._writer.wait_closed() # type: ignore[union-attr]
Jan 23 19:33:35 sakamoto gunicorn[3729]: File "/usr/lib/python3.10/asyncio/streams.py", line 343, in wait_closed
Jan 23 19:33:35 sakamoto gunicorn[3729]: await self._protocol._get_close_waiter(self)
Jan 23 19:33:35 sakamoto gunicorn[3729]: RuntimeError: Task <Task pending name='Task-48' coro=<Connection.disconnect() running at /srv/funkwhale/venv/lib/python3.10/site-pac>
Context
Funkwhale version(s) affected: 1.3.0~rc1
Non-docker setup (on Arch) with a brand new virtual env, and nginx as proxy