Reverse Proxy Configuration
We are trying to setup reverse proxy.
Below code is useful but not sure where to put this code?
What is the configuration file under which this code should be kept?
As DSS comes with nginx embedded in it, I am not able to find the directory in which the nginx related files lie.
# nginx SSL reverse proxy configuration for Dataiku Data Science Studio # requires nginx version 1.4 or above server { # Host/port on which to expose Data Science Studio to users listen 443 ssl; server_name dss.example.com; ssl_certificate /etc/nginx/ssl/dss_server_cert.pem; ssl_certificate_key /etc/nginx/ssl/dss_server.key; location / { # Base url of the Data Science Studio installation proxy_pass http://DSS_HOST:DSS_PORT/; proxy_redirect off; # Allow long queries proxy_read_timeout 3600; proxy_send_timeout 600; # Allow large uploads client_max_body_size 0; # Allow protocol upgrade to websocket proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
Operating system used: Redhat
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
As DSS comes with nginx embedded in it >> I don't think this is correct. Where have you got this from?
nginx is a separate software package so first you need to install it using your chosen package manager. The default setup will typically put the nginx binary under /usr/sbin/nginx and the config under /etc/nginx/nginx.conf but you can use your own config folder/file if you call nginx like this: /usr/sbin/nginx -c /some_dir/nginx.conf. -
Hello @Turribeach
,Thanks for replying. We got this from below link.
How to set up nginx reverse proxy in this case?
-
@Turribeach
:At application side, nginx is being called from /opt/app/install-support/nginx.conf.
Can you please help us further in configuring reverse proxy in correct way? -
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
Well you got the config file there, so update it, restart your machine and test. You need to create your SSL certificates, I can't help you with that, you need to follow your own company process for that.
-
@Turribeach
This reverse proxy solution didnt work still. I am struggling to configure it. Is there any correct document or process which you can share? -
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
The document is the one I linked above. In order for me to help you please do the following:
- Post all the configuration steps you have performed, step by step as you done them including running any commands
- Post exactly what you mean by "didn't work". What error do you see where? What do the relevant log files say?
Thanks
-
Usually, you'd place reverse proxy configurations in the nginx.conf file or a custom configuration file in an include directory. With DSS's built-in Nginx, check under directories like /etc/nginx/ or look for a path tied directly to DSS configs. You might need to dig through the DSS installation docs or file structure to find where the embedded Nginx config lives.
I had to figure out a similar setup once and using Buy proxy services helped simulate different connections to see how my reverse proxy handled them. It made testing so much easier.