-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop a universal web service definition #22067
Comments
This is a great suggestion. I would really like to see this moving forward. I'm new to Nix(OS) but as there hasn't been any activity for some time, I thought I'd sketch some ideas here just in case they are worth anything. First, I like the syntax used to define sub-services for Apache. I just switched
The attribute
Each If I understood the current Apache sub-services solution correctly, the sub-services could only configure the virtual host (or the main server) but not other services. For instance, the sub-services couldn't configure databases, php-fpm or uWSGI instances. I might be wrong here. But anyway, configuring those should be possible and this approach should make it easily possible (I think). So the main points in my suggestion are:
|
Ideas expressed in #26067, a generic approach to service abstraction, could be a source of inspiration to abstract web services too. |
Are there any updates on this issue, please? |
Has there been any progress, please? I would like to modify #77830 so that the user could decide which web server to use but I'm not really sure if there's a nice way of implementing it. |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
There has been no progress with this issue as far as I know, however even if a universal web service definition is hard, some convention on how to do it (e.g. a |
There is the nixcloud repository which may be very related to this issue. The Nixcloud project aims to deliver services in a very unified way behind a nginx reverse proxy which handles ssl, domain mapping. The configuration of services behind the proxy have been unified to allow for a rather simple configuration of services. There's also other stuff like helper variables for DB/DB-user creation on first execution, etc. Maybe some principles from this project might be integrated into Nixpkgs... I don't know exactly what a "universal web services definition" means to you but in my experience with Debian I liked to use an Nginx proxy and run web services with the developer given webserver config (which was often apache or some language specific minimal webserver). This abstraction let me handle the incoming connections "my way" while not having to translate configurations from other webservices. |
I marked this as stale due to inactivity. → More info |
definitely not stale |
any update on that? i'd love to see this in nixpkgs :) |
There is no work on a generic "fits all" solution here that I am aware of. Some people have been working on making a few NixOS modules support multiple web server backends, but in a very manual way that is adds a relatively large amount of code to maintain per module. |
tbh i was thinking the same, still it would be pretty cool :) |
Yes. Inspiration and PRs welcome 😆 |
NixOS needs a universal, webserver-agnostic webservice definition. Currently, most webservices are implemented as subservices for Apache httpd, but users should be free to choose the webserver they want to use. The wish for this definition was already mentioned in several issues, but afaik (please correct me if I'm wrong) not worked on in a coordinated way. To start, let's try to compile a list of actionable steps. Please feel free to contribute to this issue, add ToDo's to the list, offer your opinion on several topics or explain how you would propose to solve this problem.
ToDo
services.<name>
, in the style of httpd subservices or something different...)Related issues
The text was updated successfully, but these errors were encountered: