agent icon indicating copy to clipboard operation
agent copied to clipboard

How do I retrieve the NGINX config?

Open 7wingfly opened this issue 2 years ago • 1 comments

I see there is an API end-point for applying NGINX configuration (PUT /nginx/config/), but how do I go about getting the current configuration? NIM is able to do this so I assume its posssible somehow?

7wingfly avatar Feb 10 '24 19:02 7wingfly

Thanks for the issue @7wingfly. You can see how to get a NGINX config from the Management Server perspective in https://github.com/nginx/agent/blob/main/sdk/examples/server.go#L83

Right now there is no REST API on the Agent that allows you to retrieve the configuration. Can you provide more context on why this is required?

oliveromahony avatar Feb 14 '24 10:02 oliveromahony

Hi @7wingfly

As there hasn't been any further response, I'm going to close this issue. If you have any other questions or need further assistance, please feel free to reopen this issue or create a new one.

Thank you!

Best regards, @oCHRISo

oCHRISo avatar May 23 '24 08:05 oCHRISo