Installing discourse with nginx already running?

I think the thing to do is

 discourse-setup --skip-connection-test --skip-rebuild

To create the config file that you can then edit by hand and the run the rebuild.