Recently logged in IPs issue

Technical Support
  • 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.


Suggested Topics


  • 0 Votes
    4 Posts
    303 Views

    No worries, thanks for the information!

  • 0 Votes
    5 Posts
    470 Views

    @PitaJ Got it, thanks a lot for your suggestions. I will try the installation process once again today.

  • 0 Votes
    6 Posts
    1k Views

    I also run into the problem. Whenever I want to save my customized CSS or Header :

    NodeBB encountered a problem saving changes

    By the suggestion above, I modify it to message: err.message, then it becomes:

    Changes Not Saved: unrecognized input

    What am I supposed to do? Below is my CSS:

    body { font-family: "Times New Roman"; } <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script>

    Header:

    <script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js"], tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] }, TeX: {equationNumbers: { autoNumber: "AMS" } } }); </script> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>

    BUILD log:

    root@iZ94134cujlZ:/nodebb# ./nodebb stop Stopping NodeBB. Goodbye! root@iZ94134cujlZ:/nodebb# ./nodebb build started 2018-02-26T03:00:31.355Z [21693] - info: [build] Building in parallel mode 2018-02-26T03:00:31.358Z [21693] - info: [build] plugin static dirs build started 2018-02-26T03:00:31.363Z [21693] - info: [build] requirejs modules build started 2018-02-26T03:00:31.365Z [21693] - info: [build] client js bundle build started 2018-02-26T03:00:31.367Z [21693] - info: [build] admin js bundle build started 2018-02-26T03:00:31.367Z [21693] - info: [build] client side styles build started 2018-02-26T03:00:31.368Z [21693] - info: [build] admin control panel styles build started 2018-02-26T03:00:31.370Z [21693] - info: [build] templates build started 2018-02-26T03:00:31.371Z [21693] - info: [build] languages build started 2018-02-26T03:00:31.372Z [21693] - info: [build] sounds build started 2018-02-26T03:00:40.698Z [21693] - info: [build] client js bundle build completed in 9.334sec 2018-02-26T03:00:40.698Z [21693] - info: [build] admin js bundle build completed in 9.331sec 2018-02-26T03:00:40.869Z [21693] - info: [build] sounds build completed in 9.497sec 2018-02-26T03:00:41.498Z [21693] - info: [build] plugin static dirs build completed in 10.14sec Witout `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning 2018-02-26T03:00:54.973Z [21693] - info: [build] client side styles build completed in 23.606sec 2018-02-26T03:00:55.041Z [21693] - info: [build] admin control panel styles build completed in 23.673sec 2018-02-26T03:00:55.075Z [21693] - info: [build] requirejs modules build completed in 23.713sec 2018-02-26T03:01:00.042Z [21693] - info: [build] languages build completed in 28.671sec 2018-02-26T03:01:00.051Z [21693] - info: [build] templates build completed in 28.681sec 2018-02-26T03:01:00.053Z [21693] - info: [build] Asset compilation successful. Completed in 28.695sec. root@iZ94134cujlZ:/nodebb# ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb help" for more commands
  • 0 Votes
    3 Posts
    1k Views

    @yariplus said in SendGrid Emailer - Small Issue:

    It sounds like you have not set your url in config.json

    That fixed it! Thanks!

  • 0 Votes
    5 Posts
    4k Views

    @julian the inherited themes didn't work before, but is it possible that now you've made this commit:
    https://github.com/NodeBB/nodebb-theme-lavender/commit/7f8e9e4df0f0d20e8b83ab096c1443544df9bd4c
    There is scope for the template inheritance to be used there instead of the hardcoded rule 'nodebb-theme-vanilla/templates'?

    Right now I'm maintaining an entire theme that's a fork of lavender just so I can restyle one or two pages.