What's your nginx config like? Misskey doesn't make it obvious in its docs that you need to do a fairly complex proxy config.
I found a working setup here:
@NFG I can access a loading page with this in the web console (f12):
Well, a 502 error means that nginx is receiving the request but for one reason or another cannot get a useful response from misskey.
This could mean many things:
Misskey isn't running,
or the proxy isn't correct,
or Misskey is misconfigured,
Maybe show me your current nginx config with the new changes?
Hmm, I'm running it as a service.
Can you verify that it's running?
I notice that you're not using HTTP2 in your nginx config:
listen 443 ssl http2;
^ that's what I have. I also don't set my index filenames, misskey handles that. Not sure if it's related.
@NFG let's try.
@NFG well, still errors
@NFG I enabled http2 but nothing, still the same.
I also don't set a root location in my server block, misskey doesn't need that.
@NFG let my try that.
@NFG even without any root, still the same errors
Just checking, you are reloading nginx after these changes right?
@NFG also, on systemctl misskey status, it returns this:
Mar 08 13:09:05 jaekr.me misskey: ERR * [core cluster]  died :(
1. You can just reload, it's quicker, but yeah that's just as effective.
2. Here's my config (I removed most commented-out lines):
Maybe that will help you?
3. When I had trouble running misskey it did give more useful errors than just 'died'... =/
I strongly suspect at some point you've skipped a step or done something wrong in your installation. I don't know what it might be... =/
@NFG Dunno, do you know where I can find a more detailed misskey log?
I mean, status misskey.service gave three or four lines that detailed -why- it failed. It's working now so I can't really tell you what those errors were... =/
@NFG here is what it gives me with the NODE_ENV set to DEBUG https://gist.github.com/Jaekr/477f69ce14a0ccb6e60d35e29766189b
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!