Good morning,
I have a SAS Viya 3.5 multimachine install that I have placed a NginX proxy in front of. So far all of the applications that I have tried work (Visual Analytics, SAS Drive, etc) except for SAS StudioV and regular SAS Studio.
I have followed the instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-Configure-a-Reverse-Proxy-in-Front-of-.... I was not able to perform the consul changes because when I try to use the kv tool I get this error:
err="Put \"http://127.0.0.1:8500/v1/kv/config/viya/sas.httpproxy.external.hostname?cas=0\": dial tcp 127.0.0.1:8500: connect: connection refused"
Regarding the errors I get from the applications - here is what i get from SAS Studio V:
There was an error while starting SAS® Studio
Unable to create compute server session.
Failed to launch process.
Failed to launch process: host=viyaappserver.mydomain.org port=34536 ssl=true
Server error: status=0x80BFD100 messages=[ERROR: Access denied.]
From plain SAS Studio I get:
The application could not log on to the server "localhost:8591". The user ID "myuser" or the password is incorrect.
One thing to keep in mind is that the public facing server and the Viya machines are in different domains. A sanitized version of my nginx server definitions is included below. Thanks in advance for your help.
server {
listen 80;
server_name publicserver.publicdomain.com;
return 301 https://publicserver.publicdomain.com;
}
server {
server_name publicserver.publicdomain.com;
gzip off;
listen 443 default ssl;
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;
ssl_prefer_server_ciphers on;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
client_max_body_size 100m;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://viyaappserver.mydomain.org/;
}
}