Recently logged in IPs issue



  • I am getting this on my test install, under use profile (of course):

    Recently logged in IPs

    My nginx.conf proxy:

        location / {
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header Host $http_host;
          proxy_set_header X-NginX-Proxy true;
            
          proxy_pass http://REAL.IP.OF.SERVER.HERE:4567/;
          proxy_redirect off;
        
          # Socket.IO Support
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection "upgrade";
        }
    

    And my config.json is:

    {
        "url": "http://REAL.IP.OF.SERVER.HERE:4567",
        "base_url": "http://REAL.DOMAIN.HERE",
        "use_port": "false",
        "secret": "SOME-SECRET",
        "database": "redis",
        "redis": {
            "host": "127.0.0.1",
            "port": "6379",
            "password": "A-PASSWORD-HERE",
            "database": "0"
        }
    }
    
    

    Any tips?



  • Got it to work by changing my nginx.conf line:

    proxy_pass http://REAL.IP.OF.SERVER.HERE:4567/;
    

    to:

    proxy_pass http://127.0.0.1:4567/;
    

    And my config.json to:

    {
        "url": "http://REAL.DOMAIN.HERE",
        "base_url": "http://REAL.DOMAIN.HERE",
        "use_port": "false",
        "secret": "SOME-SECRET",
        "database": "redis",
        "redis": {
            "host": "127.0.0.1",
            "port": "6379",
            "password": "A-PASSWORD-HERE",
            "database": "0"
        }
    }
    


  • @Fastidious Thanks for sharing the fix.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.