Rasa docker nginx revers proxy webchat issue

I try to get Rasa working with nginx reverse proxy and with webchat as frontend. I can only get website working, but no chatbot there

I start my Rasa in container

docker run --name=amva --user 1003 -d -v $(pwd):/app -p “5010:5005” rasa/rasa:1.10.11-full run -m models --enable-api --cors “*” --debug

we can see docker ports here

paulii@vetbot-v6-test:~$ docker ps -a
c856ddef4f09 rasa/rasa:1.10.11-full “rasa run -m models …” 3 hours ago Up 3 hours>5005/tcp amva

Internet connections

paulii@vetbot-v6-test:~$ sudo netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0* LISTEN 2165/ruby
tcp 0 0* LISTEN 1362/mdsd
tcp 0 0* LISTEN 2165/ruby
tcp 0 0* LISTEN 29821/nginx: master
tcp 0 0* LISTEN 848/systemd-resolve
tcp 0 0* LISTEN 1143/sshd
tcp 0 0* LISTEN 29821/nginx: master
tcp6 0 0 :::80 :::* LISTEN 29821/nginx: master
tcp6 0 0 :::5010 :::* LISTEN 19200/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 1143/sshd


paulii@vetbot-v6-test:~$ sudo ss -nltp
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 1024* users:((“omsagent-e94879”,pid=2165,fd=15))
LISTEN 0 10* users:((“mdsd”,pid=1362,fd=15))
LISTEN 0 128* users:((“omsagent-e94879”,pid=2165,fd=19))
LISTEN 0 511* users:((“nginx”,pid=29823,fd=7),(“nginx”,pid=29822,fd=7),(“nginx”,pid=29821,fd=7))
LISTEN 0 128* users:((“systemd-resolve”,pid=848,fd=13))
LISTEN 0 128* users:((“sshd”,pid=1143,fd=3))
LISTEN 0 511* users:((“nginx”,pid=29823,fd=6),(“nginx”,pid=29822,fd=6),(“nginx”,pid=29821,fd=6))
LISTEN 0 511 [::]:80 [::]:* users:((“nginx”,pid=29823,fd=8),(“nginx”,pid=29822,fd=8),(“nginx”,pid=29821,fd=8))
LISTEN 0 4096 :5010 : users:((“docker-proxy”,pid=19200,fd=4))
LISTEN 0 128 [::]:22 [::]:

configuration file

paulii@vetbot-v6-test:/etc/nginx/sites-available$ cat amvabot.conf
server {
listen 443 default_server;
server_name vetbot6.westeurope.cloudapp.azure.com www.vetbot6.westeurope.cloudapp.azure.com;
root /var/www/html/amvabot;
location /amva/ {
proxy_pass http://localhost:5010/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header Host $host;

index.html file

paulii@vetbot-v6-test:/var/www/html/amvabot$ cat index.html
<!doctype html>
    <meta charset="UTF-8">
    <script src="https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.12/lib/index.min.js"></script>
    <link rel="stylesheet" type="text/css" href="style.css">
<div id="webchat"></div>
    showFullScreenButton: true,
    selector: "#webchat",
    initPayload: "/tervetuloa",
    customData: {"language": "fi"}, // arbitrary custom data. Stay minimal as this will be added to the socket
    socketUrl: "http://vetbot6.westeurope.cloudapp.azure.com:443",
    socketPath: "/amvabot/socket.io/",
    embedded: false,
    title: "Alma botti",
    subtitle: "Ammatinvalinta botti",
    inputTextFieldHint: "Hae ammattia...",
    //profileAvatar: "robot_icon.png",
    params: {"storage": "session"} // can be set to "local"  or "session". details in storage section.


What to try next?