Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Alzheimer's disease starting to be considered a treatable condition – study(rnz.co.nz ↗)
    discuss
  2. Study: BEVs emit 88g CO2/km over their lifecycle, less than half ICE cars [pdf](nature.com ↗)
    discuss
  3. Newly discovered asteroid 2026 SY2 changes how NEO data is interpreted(astrophyzix.com ↗)
    discuss
  4. The AI Agent Landscape – September 2026(thebeach.dev ↗)
    discuss
  5. Turn off and restrict access to Apple Intelligence features on Mac(support.apple.com ↗)
    discuss
  6. Arguing about Arguments(steveklabnik.com ↗)
    discuss
  7. Advisory Group on Mathematics and Artificial Intelligence(openai.com ↗)
    discuss
  8. Ask HN: Formatting Guidelines for LLM Comments
    discuss
  9. Dreams of making drugs and tissues in space get closer to reality(science.org ↗)
    discuss
  10. Vulnerability Disclosure Policy(flocksafety.com ↗)
    discuss
  11. Tinfield 1 is an open weight coding model from Nigeria that beats Opus 4.8(twitter.com/badtheorylabs ↗)
    discuss
  12. 2026: The Year Galleries Realised the Need to Flag or Cull Slop Images(techrights.org ↗)
    discuss
  13. Big AI to humanity: drop dead(matthewbutterick.com ↗)
    discuss
  14. Ten years since the factors (fiction)(dreamstation.systems ↗)
    discuss
  15. The Apocalypse Will Not Be Sexy(techdirt.com ↗)
    discuss
  16. Qwen3.8-Flash-Next on a 64 GB M2 Ultra: A 66-Minute Real Work Run(b1tank.github.io ↗)
    discuss
  17. Building standards for the next phase of AI(openai.com ↗)
    discuss
  18. Seeing Who Contaminates Linux with Slop (and Also Admits It)(techrights.org ↗)
    discuss
  19. Skyportal CLI: What happens when an AI agent needs approval(pypi.org ↗)
    discuss
  20. Show HN: Sommelier, an Excel Addin for your agent(grokked.it ↗)
    discuss
  21. Seven Deadly Sins of DevX(amplitude.com ↗)
    discuss
  22. Gobag: Semantic session archival for Claude Code(github.com/satmihir ↗)
    discuss
  23. Bernstein's Factorization Method Helped Factor RSA-240 in 2020(leetarxiv.substack.com ↗)
    discuss
  24. Petal: Building the First Petabit-Class Transoceanic Subsea Cable(fb.com ↗)
    discuss
  25. OpenAI projections point to a $278B cash burn through 2030(tomshardware.com ↗)
    1comments
  26. LGBT tolerance slumps in the Netherlands, 22% of boys have LGBT+ positive views(dutchnews.nl ↗)
    discuss
  27. Aura – Open-Source Framework for Detecting Social Engineering in LLMs(github.com/kate8382 ↗)
    discuss
  28. What would happen if the Yellowstone supervolcano erupted now(theconversation.com ↗)
    discuss
  29. How do I talk about using AI without sounding like an AI evangelist?(askamanager.org ↗)
    discuss
  30. Writing Rust code faster than SotA by asking agents to make the code faster(minimaxir.com ↗)
    discuss

Nginx Control API: View In-Memory Configuration and Reload via HTTP Requests

4 pointsby 1h agoblog.nginx.org
1 comments
1h agoHN ↗

From the blog post:

Before the latest release, NGINX had to be controlled exclusively by Unix signals. The most notable one is SIGHUP or the well-known “nginx -s reload” command. This configuration method, while very stable, does not meet modern environment requirements: there are very few available options, no direct feedback messages on errors, and no real extensibility. We fixed that.

NGINX recently published the version 1.31.5 release containing a new feature called the NGINX Control API. This is a new interface for reading configuration and triggering reload operations that presents these functions to the user over a REST API. Filesystem system configuration files and UNIX signal daemon management are not optimal for all users of NGINX. With the rise of Kubernetes and the continued dominance of containers as a deployment target for NGINX we wanted to provide configuration and management interfaces that better support using NGINX in containers or behind managed deployments. The NGINX Control API provides a way to read and reload configuration that is transactional, returning deterministic success or failure codes as any HTTP response would. This Control API can be served across a trusted network. Furthermore, the Control API provides an interface that does not experience any interruption during reload.

Newly released, this Control API provides the ability to read the current in-memory configuration associated with a master process. This is a completely new capability. Since NGINX has always had the potential to reject a new configuration and continue unaffected during a reload, users sometimes fall into a trap where they no longer know what configuration NGINX is then running. The configuration on disk may have completely changed but NGINX is still running some old configuration. Before Control API there was no method of retrieving that current configuration. Finally in these cases the user can simply fetch it with an HTTP request.

The Control API also provides facilities to trigger NGINX reloads. This will capture all logs during reload and return them in the response to the user. Additionally, the HTTP status code in this response will provide a simple way to answer the question “did this reload succeed or fail”. Previously, users may have had to export and search through logs for this information or potentially check PIDs of worker processes. The Control API holds a unique position to capture post-reload failures such as socket permission errors that previously were only observable through the logs of a new master process. These failures, while not loggable by the old master configuration, are reflected in the HTTP status code of the response. This is a new capability for NGINX. Previously users who relied on commands such as “nginx -s reload” or by sending SIGHUP to the master process had to then search the logs to make sure the reload succeeded. Now this information is relayed to them automatically when they request a reload over the Control API.

In our experience, this API makes it trivially simple to create UIs and scripts for advanced NGINX management and control.