'Connect to OpenVPN in Django and nginx

I have a Django app that talks to a 3rd party API, however, in order for the requests to succeed, an OpenVPN tunnel must be oppened. Locally, I do that using the OpenVPN GUI which has the certificate, however I'm not sure how to do the same thing when the app is deployed in a Docker container.

I've tried importing the certificate in the store, but that doesn't work. Should I open the connection every time I want to send a request to the 3rd party API?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source