Etherpad integration doesn't work

Hi, im trying to integrate Etherpad with jitsi. I followed this https://github.com/jitsi/jitsi-meet/wiki/Etherpad-addition-example tutorial.
This is in my jitsy/meet config file
etherpad_base: 'https://mydomain.com/etherpad/p/',

And this in my nginx server blocks
server {
# Etherpad-lite
location ^~ /etherpad/ {
proxy_pass http://localhost:9001/;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_buffering off;
proxy_set_header Host $host;
}
}

But when i try to open a file inside a conference, this happens

Yes, opens another call inside the existing conference.

What Im doing wrong?

Nevermind, I solved.
What I was doing wrong was the nginx server block. The one I referenced above has to be inside the ssl server block, I was doing a separate server block. FWIW