Any way to serve http on anonymous users, https on registered users


  • Anime Lovers

    For efficiency and security reason, I use https to protect users and our site. However, there is a noticeable downgrade of getting the content of the website. So I wonder if there is a better way of serving anoymous users which does not input their propriety assets. so that http is better, and https seves registered users only.


  • Global Moderator

    @jiangcaiyang you could use nginx in front and maybe get this to work but unlikely. It's not a good idea, regardless. HTTPS is good for everyone regardless of the sensitivity of the information. If HTTPS is causing a noticeable performance lag, you may be having other issues.


  • Anime Lovers

    With all optimized steps on, I could get as fast as previous when https not enabled, but far more faster when https enabled. Other bottleneck could be the images. Recently, I'm working hard on reducing warnings of mixed content, so I'm not prefering 3rd party images and assets, rather using the resources provided our own.


  • Global Moderator

    @jiangcaiyang you shouldn't have too many issues with mixed content at least in core. If you do, please report a bug with the Github issues. Make sure you have the address in config.json set correctly to the endpoint of your site.


  • Anime Lovers

    @PitaJ Thanks, it is actually not the issue of NodeBB, it is the decision on which strategy to choose. Anyway, I've done no worse than before, that is enough.


    Test the out image links:
    outlinks


Log in to reply
 

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