Ok so after having a chat with nhl.pl it seems that the ip for the proxy_pass in the nginx file should be "localhost" instead of "127.0.0.1" because of reasons (digitalocean).
config.json:
{
"url": "http://ideocracycommunity.com:4567",
"secret": "lolololol",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "lololoo",
"database": "0"
}
}
nginx:
server {
listen 80;
server_name ideocracycommunity.com;
location / {
proxy_pass http://localhost:4567;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}