Redirecting the old url to the nodebb's topic from Ghost-Blog's migrating

Technical Support

Suggested Topics


  • 0 Votes
    2 Posts
    191 Views

    Never mind - after looking at the slick theme, I realised that partials/breadcrumbs is being included at the top of the file, so this is the intended target 🙂

  • sticky topic info box

    Technical Support
    1 Votes
    3 Posts
    270 Views

    @onur-baran

    I believe this CSS change should work:

    .topic .topic-header { position: unset; }
  • 0 Votes
    1 Posts
    197 Views

    Hi all,

    I'm trying to use the recently introduced WriteAPI to create topics and concurrently upload a file.
    I'm doing it via Python and I've already succeeded in create a simple topic without a file using something lilke

    payload = { "cid": cid, "title": title, "content": message } headers = { 'Authorization': 'Bearer '+nodebbToken, 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=json.dumps(payload))

    but when it's about files using

    payload = { "cid": backstage_cid, "title": backstage_title, "content": backstage_message } headers = { 'Authorization': 'Bearer '+nodebbToken, 'Content-Type': 'multipart/form-data' } verifySSL = False print (payload) if (useFile): with open(backstage_file, 'rb') as f: response = requests.request("POST", url, headers=headers, data=payload, verify=verifySSL, files={backstage_file: f})

    it returns
    Error: Required parameters were missing from this API call: cid, title, content cause passing the parameters in a plain dictionary rather than a JSON object seems not doable.

    The switch from JSON to dictionary is needed otherwise I wouldn't have been able to pass a file together with such header

    headers = { 'Authorization': 'Bearer '+nodebbToken, 'Content-Type': 'multipart/form-data' }

    Has anybody valuable suggestions here?

    Thanks in advance, Riccardo

  • Free HTTPS for NodeBB

    Technical Support
    0 Votes
    7 Posts
    2k Views

    @jimmyc2018 said in Free HTTPS for NodeBB:

    I just setup "Let's Encrypt" yesterday but today noticed "Secure" doesn't always show up beside my URL as I'm browsing back and forth through my NodeBB forum.

    There's even one forum Topic/Page that always shows up without the "Secure" sign. Even if I repeatedly refresh the page and clear my browser out and come back to it.

    Has anyone else experienced this?

    On top of changing the URL to HTTPS, you should setup forwarding so people always hit your https page.

    With CloudFlare I have these setup:
    0_1518196963653_70ff6121-ce58-4336-b215-43bb9d20aa12-image.png

    For good measure, I have the following in my nginx config too:

    server { listen 80; server_name gamingexodus.com www.gamingexodus.com; return 301 https://$host$request_uri; }

    Though looking at my nginx block now, I probably need to say return 301 https://gamingexodus.com$request_uri; to ensure www is not used.

  • nodebb slows down

    Technical Support
    0 Votes
    16 Posts
    6k Views

    @sanatisharif said in nodebb slows down:

    I don't know, please tell me how can I know that?

    $> top

    this will give you a bunch of statistics about the system, including that's running and how much CPU it is taking.

    to find out how many processes of nodejs are running i would recommend using

    #> ps aux |grep node

    this will spit our information about all processes that have "node" in their command line. you'll probably get a few false positives but you should be able to identify how many of those are nodebb easily enough.