Well I commend the Nginx team for trying something new and launching this, even though I'm not sure what I would use it for personally. Slightly tangental, but it always irks me when I see these kinds of responses in JSON: { "success": "Reconfiguration done." } Really this should be something like "result": "success". Using "success" as a key name tells me nothing about the data it's representing.
That's like when I see APIs that give you responses with a 200 code, but then in the message there's a backend error.
Nginx Unit – Universal web app server
91–100 of 201 posts
Re: Nginx Unit – Universal web app server
#92Why the obsession (it seems to be the prominent point in the readme) with configuration via API? How often do you need to add php support on the fly? I want to configure my app server via files so it just starts up in the state that I expect. What am I missing?
It's not so much "on the fly", as it is moving the long-term config storage to a different system.
Re: Nginx Unit – Universal web app server
#93Why the obsession (it seems to be the prominent point in the readme) with configuration via API? How often do you need to add php support on the fly? I want to configure my app server via files so it just starts up in the state that I expect. What am I missing?
An API and a web server with small segmented updates make this so much easier. Compare this to Apache, that has to wait to properly end existing connections before reloading, has a config file parsing overhead, and probably does not scale that well with several virtual hosts anyway. There are hardware/File System level limitations as well.
Re: Nginx Unit – Universal web app server
#94I only glanced at the docs, but way they expect apps to integrate with it seems a bit convoluted to me? It's not really a reverse proxy at this What would be wrong with just using HTTP/2, maybe with a few custom headers sprinkled in for custom features?
> It's not really a reverse proxy at this In fact it's not one at all, nor does it claim to be. It's an app server.
Re: Nginx Unit – Universal web app server
#95For a NodeJS app, could you remove something like nodemon by using this? That could make this appealing.
Re: Nginx Unit – Universal web app server
#96Earlier quoted context omitted.
YAML is an order of magnitude more hell...
But TOML is worse, right ? I can't write nor read TOML to save my life... :(
Re: Nginx Unit – Universal web app server
#97I switched to caddy from nginx and didn’t look back. Auto SSL wildcards was enough.
Re: Nginx Unit – Universal web app server
#98Earlier quoted context omitted.
In this particular example, it’s actually a whole lot worse than that, by spec at least. Excerpt from their OpenAPI schema https://github.com/nginx/unit/blob/7dd5ad93a4c147b086a8d82ec... >: jsonSuccessMessage: type: object description: "JSON message on success." additionalProperties: type: string jsonErrorMessage: type: object description: "JSON message on error." additionalProperties: type: string Yes, this is as ba…
> Yes, this is as bad as it looks: “success” isn’t even part of the schema. It’s in the examples, but not the actual schema definition. Having gone through a pretty heavy overhaul of an "OpenAPI" (full code in Elixir at https://github.com/etalab/transport-site/pull/3351 ), I stumbled on that exact type of problem! At the scale of nginx, having automatic verification that the examples (and the output of the API in gen…
Re: Nginx Unit – Universal web app server
#99Well I commend the Nginx team for trying something new and launching this, even though I'm not sure what I would use it for personally. Slightly tangental, but it always irks me when I see these kinds of responses in JSON: { "success": "Reconfiguration done." } Really this should be something like "result": "success". Using "success" as a key name tells me nothing about the data it's representing.
{ status: 200, body: { "message": "Reconfiguration done." } }
?
Re: Nginx Unit – Universal web app server
#100Earlier quoted context omitted.
> a simple docker-compose Abstraction at it's finest.
Unironically this. After trying Kubernetes, Terraform, Ansible, and various proprietary PaaS config formats, I've grown to love Compose files' simplicity.