From Ashton McAllan to ~tsileo/microblog.pub-devel
This has an issue where the PWA will cache the contents of the stream page so we would need to work out how to set the cache control headers from the server to tell the client not to do that. -- regards, Ashton McAllan http://acegiak.net
From Ash McAllan to ~tsileo/microblog.pub-devel
--- app/main.py | 20 +++++++++++++++++++- app/templates/layout.html | 4 ++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 4cd987d..a956e4d 100644 --- a/app/main.py +++ b/app/main.py @@ -1596,7 +1596,6 @@ Disallow: /admin Disallow: /remote_interaction Disallow: /remote_follow""" [message trimmed]
From Ash McAllan to ~tsileo/microblog.pub-devel
--- app/admin.py | 2 ++ app/ap_object.py | 6 ++++++ app/boxes.py | 29 +++++++++++++++++++++++++++++ app/main.py | 14 ++++++++++++++ app/templates/admin_new.html | 1 + app/templates/index.html | 7 ++----- app/templates/utils.html | 31 +++++++++++++++++++++++++------ 7 files changed, 79 insertions(+), 11 deletions(-) diff --git a/app/admin.py b/app/admin.py index e837c46..484aadf 100644 --- a/app/admin.py +++ b/app/admin.py [message trimmed]
From Ashton McAllan to ~tsileo/microblog.pub-devel
Adding http2 back in seems to have got me to a sweet spot where basically everything is working really smoothly On 11/19/22, Ashton McAllan <acegiak@gmail.com> wrote: > I think I'm actually getting more timeout errors now. not less? > > ``` > INFO: 82.64.58.107:0 - "GET /proxy/media/(a hash) HTTP/1.1" 500 > Internal Server Error > ERROR: Exception in ASGI application > Traceback (most recent call last): > File > "/home/ubuntu/.cache/pypoetry/virtualenvs/microblogpub-w8qPhqp5-py3.10/lib/python3.10/site-packages/httpcore/_synchronization.py", > line 38, in wait
From Ashton McAllan to ~tsileo/microblog.pub-devel
I think I'm actually getting more timeout errors now. not less? ``` INFO: 82.64.58.107:0 - "GET /proxy/media/(a hash) HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/home/ubuntu/.cache/pypoetry/virtualenvs/microblogpub-w8qPhqp5-py3.10/lib/python3.10/site-packages/httpcore/_synchronization.py", line 38, in wait await self._event.wait() File "/home/ubuntu/.cache/pypoetry/virtualenvs/microblogpub-w8qPhqp5-py3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1842, in wait if await self._event.wait(): File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait
From Ashton McAllan to ~tsileo/microblog.pub-devel
Proxy unstable serving videos. I'm often running into issues where the media proxy fails to serve videos, I think because it times out when trying to fetch the video from the other server. It happens often enough to be a significant annoyance. When viewing those videos on other servers it doesn't fail but sometimes takes a little time to load. Is the solution to increase the resources of my server machine or to somehow increase the response time tolerance for the media proxy? ``` INFO: 145.14.124.130:0 - "GET /proxy/media/19321/(removed just incase) HTTP/1.1" 500 Internal Server Error
From Ash McAllan to ~tsileo/microblog.pub-devel
--- app/admin.py | 2 ++ app/boxes.py | 33 ++++++++++++++++++++++++++++++++- app/main.py | 20 +++++++++++++++++++- app/templates/admin_new.html | 2 ++ app/templates/utils.html | 10 ++++++++++ 5 files changed, 65 insertions(+), 2 deletions(-) diff --git a/app/admin.py b/app/admin.py index d8a5ca4..5fb26d2 100644 --- a/app/admin.py +++ b/app/admin.py @@ -1035,6 +1035,7 @@ async def admin_actions_new( in_reply_to: str | None = Form(None), [message trimmed]
From Ash McAllan to ~tsileo/microblog.pub-devel
--- app/templates/object.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/object.html b/app/templates/object.html index b04dd14..2a556d8 100644 --- a/app/templates/object.html +++ b/app/templates/object.html @@ -35,7 +35,7 @@ {{ utils.display_object(replies_tree_node.ap_object, likes=likes, shares=shares, webmentions=webmentions, expanded=not replies_tree_node.is_root, is_object_page=True) }} </div> {% else %} <div class="thread-reply h-cite"> <div class="thread-reply h-cite u-comment">[message trimmed]
From Ash McAllan to ~tsileo/microblog.pub-devel
--- app/uploads.py | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/app/uploads.py b/app/uploads.py index 60f3151..068526d 100644 --- a/app/uploads.py +++ b/app/uploads.py @@ -14,6 +14,7 @@ from app.config import BASE_URL from app.config import ROOT_DIR from app.database import AsyncSession UPLOAD_DIR = ROOT_DIR / "data" / "uploads" [message trimmed]
From Ashton McAllan to ~tsileo/microblog.pub-devel
And skipping that getdata/putdata does fix the problem, though that means it's not stripping exif -- regards, Ashton McAllan http://acegiak.net