Ben Klein
Ben Klein
Simplest implementation seems to be to run `ip -6 addr show scope global -mngtmpaddr -temporary` first, and if it has no matches, then continue with the existing implementation.
This is working for me. Let me know if any other changes are needed.
Ah, this has a lot of useful side effects like being able to change the app icon (maybe we add a setting for it) and potentially return 404's correctly for...
Indeed, setting nginx to cache only the html responses from the server makes sense. In terms of slow clients I was talking more about TTFB rather than total load time,...
I think I figured out how I would exploit `X-Forwarded-Prefix`, - Completely destroy the utility of the cache and force disk thrashing by changing the prefix in repeated attempts with...
Found one more problem to address: Discordbot/2.0 does not send an `Accept` header at all, of any kind... ``` GET /post/4582 HTTP/1.0 Host: ---- Connection: upgrade X-Forwarded-Prefix: / X-Forwarded-For: ----...
Fix for discord not using any `Accept` header: ```diff diff --git a/client/nginx.conf.docker b/client/nginx.conf.docker index 1ce531d7..b9e3dba4 100644 --- a/client/nginx.conf.docker +++ b/client/nginx.conf.docker @@ -92,6 +92,12 @@ http { location / { tcp_nodelay...
A tangentially related idea that I had while writing this, since the lua is embedded within Nginx it's possible to return the correct logical HTTP status codes for resources which...
@sgsunder absolutely possible, I just didn't take that approach because it involved the backend containing some of the code from the frontend I can try that approach, just need to...
Here's my proposed design for enabling OpenGraph tags without changing the structure of the single-page app (SPA), based on the idea from https://stackoverflow.com/questions/50263513/redirect-crawlers-to-internal-microservice-in-nginx 1. Request comes in from crawler /...