Cannot parse partial configs
Describe the bug Unable to process config file with http block
To Reproduce Parse this file: template-config-no-http.txt
It works if you wrap it in an http block:
template-config-http.txt
Expected behavior Since the file is a valid partial configuration, it would be expected to have this work
Your environment
- Operating System Ubuntu 20.04
- Version of crossplane crossplane 0.5.7
the same issue with server block - parsing returns lots of errors got some alternative to this? @kenneth-vkd
@rogueloop have not yet found another solution.
Currently reading a template config file to a string and the replace the simple parts, such as server_name and ssl certificate paths.
For more "complex" things, such as adding directives at specific points or remove directives, I convert the string to a list with .splitlines() and then use .join() to merge it back to a single string before creating a file
Yeah I want to edit the file(s) I have in sites-available and since they are partial (just a server block) that gets pulled into the main config with an include, clossplane throws nothing but errors. Kind of defeats the purpose ...
I could use the combine param on the nginix.conf file but then there's no way to split out just what's in sites-available.
Isn't putting server blocks insites-available a best practice? why wouldn't crossplane support editing those files?
Same issue here. I wish to edit just the files in sites-available, I was hoping there was a way to do so.