NGINX not working

Technical Support

Suggested Topics


  • 0 Votes
    26 Posts
    1k Views

    No it goes in library.js since it's a server side hook. And you need to add the corresponding entry in plugin.json.

    // library.js myPlugin.filterMiddlewareRender = async (hookData) => { hookData.templateData.user = await user.getUserData(hookData.req.uid); return hookData; }; //plugin.json "hooks": { "filter:middleware.render": "filterMiddlewareRender" ... }
  • 0 Votes
    3 Posts
    600 Views

    You don't need to put it in public_html. It makes no difference.

  • 1 Votes
    3 Posts
    763 Views

    Similar issue there is no Carousel Mode only four recent topics, any idea's how to fix it?

  • 0 Votes
    2 Posts
    2k Views

    It was solved; here is my working Apache's nodebb.conf:

    <VirtualHost *:80> ServerName thewizards.club Redirect permanent / https://thewizards.club </VirtualHost> <VirtualHost *:443> ServerName thewizards.club SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /etc/apache2/ssl/thewizards-club/2_thewizards.club.crt SSLCertificateKeyFile /etc/apache2/ssl/server.key.insecure SSLCertificateChainFile /etc/apache2/ssl/thewizards-club/1_root_bundle.crt # ServerAdmin webmaster@localhost <Proxy *> Require all granted </Proxy> ProxyRequests off #ProxyVia on AllowEncodedSlashes On #ProxyPreserveHost on RequestHeader set X-Forwarded-Proto "https" RewriteEngine On RewriteCond %{REQUEST_URI} ^/socket.io [NC] RewriteCond %{QUERY_STRING} transport=websocket [NC] RewriteRule /(.*) ws://127.0.0.1:4567/$1 [P,NE,L] # NE flag == noescape ProxyPass /socket.io http://127.0.0.1:4567/socket.io nocanon retry=0 ProxyPassReverse /socket.io http://127.0.0.1:4567/socket.io ProxyPass / http://127.0.0.1:4567/ nocanon retry=0 ProxyPassReverse / http://127.0.0.1:4567/ ErrorLog /home/web/logs/apache/forum-error.log CustomLog /home/web/logs/apache/forum-access.log combined </VirtualHost>

    It was fixed it based on these resources:

    Just a moment...

    favicon

    (serverfault.com)

    Just a moment...

    favicon

    (serverfault.com)

  • 0 Votes
    3 Posts
    1k Views

    @frissdiegurke said:

    Did you disable the nodebb-plugin-markdown? This one is responsible for most text parsing including quotes (see this page for syntax).

    No. Its enabled.