Welcome to this week's edition of Code Snippet Weekly, your go-to source for practical coding snippets that you can start using today!
Here’s a roundup of this week’s highlights:
- Prevent Password Leaks in Node.js - Protect sensitive user information by ensuring passwords never leak in API responses. Instead of manually deleting passwords, consider using a middleware to handle this reliably. Read more.
- Multi-App Reverse Proxy with Nginx - Learn how to set up OpenClaw behind Nginx on a shared server, enabling you to run multiple applications seamlessly with a single IP. This is especially useful for Raspberry Pi setups. Read more.
- Serve HTTP and WebSocket on the Same Root Path - Find out how to configure Nginx to handle both standard HTTP requests and WebSocket connections on the same endpoint, simplifying your application's architecture. Read more.
- Exploring AWS S3 Storage Classes - Dive into the various storage classes offered by Amazon S3 and understand how to optimize your file storage strategies for different use cases. Read more.
- Virtual Threads in Java 21 - Discover how Java's virtual threads can enhance concurrency without the typical pitfalls, making your applications more scalable and efficient. Read more.
Thanks for reading! Keep coding and see you next week!