Yeti-client-setup

Below i am sharing the Yeti-Client setup which is working.

Install yeti client / Yeti Customer portal

apt install yeti-client -y

Then rename / move the config file.

cp -R /opt/yeti-client/dist/config.js.dist  /opt/yeti-client/dist/config.js

Edit config.js and change the apiBaseUrl you can use your network IP with a port for example.

apiBaseUrl: 'http://192.168.1.1:8080',

then create an NGINX file for yeti client. below is my nginx config.

server {
    listen 8080;
    server_name _;
    root /opt/yeti-client/dist;
    access_log /var/log/nginx/yeti-client;
    index index.html;

    location / {
    }
   location /api/rest/customer {
            allow 127.0.0.1;
            allow 192.168.1.1;
            proxy_pass  http://yeti-unicorn;

            if ($request_method = 'OPTIONS') {
                    add_header 'Access-Control-Allow-Origin' '*';
                    add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept, api_key, Authorization';
                    add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, PATCH, OPTIONS';
                    add_header 'Access-Control-Max-Age' 1728000;
                    add_header 'Content-Type' 'text/plain charset=UTF-8';
                    add_header 'Content-Length' 0;
                    return 204;
            }
            add_header 'Access-Control-Allow-Origin' '*';
            add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept, api_key, Authorization';
            add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, PATCH, OPTIONS';
            add_header 'Access-Control-Allow-Credentials' 'true';
        }

}

Then restart nginx, Go to Yeti admin and create an API user under System → Api Accesses.
Keep Allowed IPs value as 0.0.0.0/0 (default)

now you can just open http://192.168.1.1:8080 and access the Yeti Client / Customer Panel