Git Product home page Git Product logo

Comments (5)

alessfg avatar alessfg commented on July 18, 2024 2

@asabhaney I finally got around implementing snippets support in #59.

FWIW, I might revisit how uploading configuration files works for the other nginx_config_*_upload_* variables at some stage (might even remove some of them) since I am not entirely happy with the assumptions/little configurability made behind the scenes by the respective tasks (and I think the snippets option can be used just as well for the main/http/stream configuration upload tasks).

from ansible-role-nginx-config.

alessfg avatar alessfg commented on July 18, 2024 1

Interesting suggestion @asabhaney! I can't promise when/if this will get worked on (there's a few other tasks on the backlog with a higher priority at the moment), but feel free to submit a PR if you want 😄

from ansible-role-nginx-config.

alessfg avatar alessfg commented on July 18, 2024

Hey again!

I'm looking at the suggested plugin you shared and I have a couple thoughts about it.

  1. The example in that plugin could be replicated using nginx_http_upload_*, although I do get that if you want to upload both config and snippets files to different destination folders, nginx_http_upload_* will only let you choose one source and destination at a time.
  2. There is no snippets concept within NGINX's defacto directory structure. That's a concept introduced in the plugin you linked. Not that there's anything wrong with it, but it's not necessarily a recommended folder structure.

Duplicating nginx_http_upload_* to create a nginx_snippets_upload_* variable should be easy enough. A better question would be whether it'd make more sense to let users use a list when using nginx_*_upload_* and in doing so simplify the whole series of upload related variables.

from ansible-role-nginx-config.

asabhaney avatar asabhaney commented on July 18, 2024

Hey @alessfg, thanks for taking the time to look into this! I agree that there's no defacto directory structure references to snippets (though I have seen it scattered throughout Nginx's documentation). I also agree that it's too specific and bloating to add a set of vars (nginx_snippets_upload_*) for it.

I think that being able to upload any additional folders/files to the root nginx directory is a better general solution. Not sure whether that should include replacing vars such as nginx_http_upload_* (not to mention backward breaking), or it should be in the form of something like nginx_other_upload_*, which could take in a list.

from ansible-role-nginx-config.

asabhaney avatar asabhaney commented on July 18, 2024

Great thanks, can't wait to use it!

from ansible-role-nginx-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.