Reverse Proxy Configuration

mettuharish
Level 3
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

 

0 Kudos
6 Replies
Turribeach

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.

0 Kudos
mettuharish
Level 3
Author

Hello @Turribeach ,

 

Thanks for replying. We got this from below link.

 

https://doc.dataiku.com/dss/latest/installation/custom/reverse-proxy.html#https-deployment-behind-a-...

 

How to set up nginx reverse proxy in this case?

0 Kudos
mettuharish
Level 3
Author

@Turribeach :At application side, nginx is being called from /opt/app/install-support/nginx.conf.
Error.PNGCan you please help us further in configuring reverse proxy in correct way?

0 Kudos

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. 

0 Kudos
mettuharish
Level 3
Author

@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?

0 Kudos

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

0 Kudos