Nathaniel Sabanski
Nathaniel Sabanski
Haven't extensively tested this yet but this has been working so far: `docker run -p 80:80 -u 1000:1000 --sysctl net.ipv4.ip_unprivileged_port_start=0 -v /home/you/Caddyfile:/etc/Caddyfile abiosoft/caddy` `docker-compose` has a `sysctl` and `user` section...
Just FYI got this working fairly seamlessly with Caddy over **https://** with Let's Encrypt working. You can de-escalate your privileges from root to a `caddy` user using `setpriv` (or `gosu`)....
@abiosoft @asakurayoh if you want me to post my changes and `entrypoint.sh`, let me know. I'm just hesitant because apparently Caddy v2 is doing their own Dockerfile to replace this...
Just tested this with CockroachDB on [1043b36](https://github.com/django/django/commit/1043b3655d02d277a5c200788d381d8a9ed078d9). First impressions: Seems to work! Brilliant job. Forgive my noobiness. This is a really exciting feature to me-- I'm really eager to see...
Thank you for your excellent work so far @LomaxOnTheRun ! >As per the PR description there are still 4 decorators which are not covered, but I'm open to either working...
~~FastAPI community is welcome to use my code: https://github.com/gnat/csrf-starlette-fastapi/blob/main/csrf_middleware.py~~ ~~50 lines.~~ See: https://github.com/gnat/csrf-starlette-fastapi#why-you-may-not-need-a-csrf-middleware-in-2022
Update- why you don't need a middleware for CSRF in 2022: https://github.com/gnat/csrf-starlette-fastapi#why-you-may-not-need-a-csrf-middleware-in-2022 tl;dr: Browsers have improved enough that you can use a dual-cookie system: one lax, one strict.
Please turn this on when you select Dark Icon theme and/or when you select one of the dark themes! The DAG is wonderful but blinding.
Hope to see a more permanent solution to this eventually. For anyone struggling with this and using asyncio... ```python import asyncio async def doit(): await asyncio.sleep(5) async def main(request): await...
Looks like Trio-esque Task Groups and Exception Groups are built into `asyncio` for python 3.11: https://realpython.com/python311-exception-groups/