NGINX config language grates on me. Whyyy did they have to come up with their own config format? It is so much nicer to configure Caddy with JSON file for example.

2 years ago by Drew to c/programmingcirclejerk

refalo 8 points 2 years ago

pretty sure it's because nginx was started about ten years before the JSON standard existed

path: 0 15131727, hotness: undefined, score: 8, children: 3
model_tar_gz -6 points 2 years ago

It’s not possible to write compatibility layers in software. It’s not possible to write a data structure conversion script. It’s not possible to update and refactor code to modern standards.

It’s not possible to do anything in software.

path: 0 15131727 15133194, hotness: undefined, score: -6, children: 2
MadhuGururajan 3 points 2 years ago

maybe you should do it, and help everybody? It's open source afterall!

path: 0 15131727 15133194 15145303, hotness: undefined, score: 3, children: 1
model_tar_gz 2 points 2 years ago

I have no need to, so I won’t. But the downvotes and your response prove my point: if there was a real need to, it probably would have already been done. In this case it’s easier and completely sufficient to just learn nginx’s config than it is to refactor it, or write the conversion/compatibility layer.

I will take my downvotes in stride, thanks for the validation.

path: 0 15131727 15133194 15145303 15148339, hotness: undefined, score: 2, children: 0
raoul 7 points 2 years ago path: 0 15131507, hotness: undefined, score: 7, children: 0
nesc 2 points 2 years ago

Json is no better when you are doing it by hand, might be worse. They came up with their own config because there was a need.

path: 0 15164686, hotness: undefined, score: 2, children: 0
programmingcirclejerk
programmingcirclejerk

@programming.dev

login for more options
304
53
1

Community to talk about enlightened programming takes

Rules:

  • read and follow the programming.dev code of conduct
  • no flamewars
  • mark your unjerks
  • only programming related content allowed
  • link to the original source
  • do not mention this community in places like hackernews, lobste.rs, or the general programming communities on Lemmy where we source jerk material from.

go to feed...