Klick scriptalertmuhahascript

General Discussion

Suggested Topics


  • 0 Votes
    1 Posts
    34 Views

    I want to upload images to S3 or CF,but there isn't plugins I found,so I store the picture locally
    How do I set images to be cleared automatically, or how do I set posts to expire and be cleared,please help me..
    The follows are not working .
    5decafad-0415-4078-b5a7-19dfe13d6b93-image.png
    39f03afc-d960-4f44-9e09-aaf5a5551c2a-image.png

  • 0 Votes
    1 Posts
    26 Views

    I use nginx proxy manager to proxy the ip and port of the Docker container, which is started from GitHub's Docker-Compose, but it doesn't seem to work.

    e7504928-fb47-47d0-a9c3-ea03ce9fade8-image.png
    da6af99b-0e0a-4c7c-b632-34018168a69b-image.png
    b6ffee8d-0840-4380-b395-9ed6f0d27c0f-image.png
    c3f487eb-9485-4679-92f1-29a3778cf5c1-image.png

  • 3 Votes
    16 Posts
    646 Views

    @Johan-Joseph πŸ‘Œ :nod:

    πŸ˜†

    (an emoji is worth at least 5-10 words, no?)

  • 0 Votes
    10 Posts
    602 Views

    @PitaJ said in How do I upgrade NodeBB without destroying Data & images?:

    @dunlix you could lose installed plugins, but that's unlikely. You certainly wouldn't lose activated plugins.

    Did you lose uploads? What plugins did you lose?

    The only things that it can conceive of that are not in the database are uploads, which you can back up before an upgrade according to the documents you referenced.

  • 0 Votes
    10 Posts
    4k Views

    if you're trying to embed nodebb on another site (i.e., the nodebb instance domain ISN'T your website's domain), you'll have to contend with CSP headers. just a heads up.

    if you have full control of the server on which your nodebb instance is hosted, you could set up a simple reverse proxy with nginx, point it to whatever port nodebb is listening on, and set the headers to something lax that way. config below.

    server { listen localhost:4000 ssl; server_name localhost; ssl_certificate /etc/nginx/ssl/localhost.crt; ssl_certificate_key /etc/nginx/ssl/localhost.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers 'AES128+EECDH:AES128+EDH'; ssl_prefer_server_ciphers on; location /forum { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; client_max_body_size 100M; proxy_pass http://127.0.0.1:4567; proxy_redirect off; proxy_intercept_errors on; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_hide_header content-security-policy; proxy_hide_header x-frame-options; add_header content-security-policy "default-src * 'unsafe-eval' 'unsafe-inline' 'self' 'inline' 'http://*.*'"; } }

    you can append whatever domains you'd like to the 3rd to last line (the one that starts with add_header ...), though you shouldn't need to, since the * should whitelist all origins.

    you might ask, β€œwhat legitimate use would there be for this?!?”
    in my particular case, it's nice for local development β€” where your nodebb instance is already running elsewhere but you want to embed it in the site you're developing on your PC.