Oddbean new post about | logout
 who is running ditto on a vps right now that could advise me on the ngnix config?? #asknostr  
 All the info is in the install guide: https://docs.soapbox.pub/ditto/install

Do you have a specific question? 
 Thanks for responding!

The install guide is well written, thanks for sharing. I got the SSL certificate and am able to access the main ditto page at the URL I set in the nginx config server block (https://notes.<my domain>.org) but am getting the error “websocket connection to wss://<mydomain>.org/relay failed” in the browser console and a blank ditto timeline when I visit it.

It seems to be trying to connect to wss://<mydomain>/relay, when I want it to connect to wss://notes.<mydomain>.org. The main domain https://<mydomain>.org leads to a separate Wordpress blog on bluehost, so I imagine that’s why it’s not able to connect to wss://<mydomain>.org/relay. I created the notes.<mydomain>.org subdomain to use just for this.

I think my question is how can I update the url that ditto uses for the wss connection to match the one I set in the nginx config ? (I want it to use wss://notes.<mydomain>.org NOT wss://<mydomain>.org/relay)

You could DM me a response or comment back on here. Let me know if I wasn’t clear. I’m using a vps on digital ocean. 

 
 https://i.nostr.build/zdPGyYniXKAgEFxc.jpg what my browser looks like for context 
 community - like CONTROLLED CHAT server with web UI ? 
 I need help from experts

@Siddharth Singh  
 Update: 

I messed with the .env and updated the local domain. now the web socket connects to wss://notes.<mydomain>.org/relay, which should work ok for what I need right now without messing with the Wordpress install I have at http://<mydomain>.org. I connected to the relay with my client and successfully posted to the relay. 

I guess my question now is whether there is any way to take off the “/relay” at the end of the wss url. 

 
 there is no way to take off the "/relay" 
 got it, thank you for being responsive!!  
 Well you could set up an nginx forwarding rule to forward relay.notes.yoursite.org to notes.yoursite.org/relay 
 ahhh thanks my friend! i have never done that before but now that you tipped me ima research how to do that. if you have any resources that explain how to do it please share. 
 not sure why the note with the question is not showing but here it is in case you cant see it 

nostr:nevent1qqs9dp9ucz5hu8z6evjr2a7zplq7670phnmjxfr2slp3djazk32thzgpzdmhxue69uhk7enxvd5xz6tw9ec82c30qgswe9j5qhs356nps6e8lfz35tluzwtwmeug85h2z8pjl0fvvwvkjesrqsqqqqqp4nf9ms 
 WHAT IS PURPOSE OF DITTO? 
 IDK BUT IMA FIND OUT 
 nostter.app n ditto.pub
looking NOTHING impressive to me - u can carry on 
 why will someone run ditto for what?