I want to set up my own Nepenthes against LLMs. I have purchased a domain, say “wowsocool.com”.

I have a RaspberryPi 4B that I want to use as an nginx reverse proxy, and an old Acer laptop that will host the Nepenthes. I am going to host this at my current residence router as I won’t be staying there too long. I thought this was a cool temporary project.

My problem is that the website sort of glosses over the whole nginx setup and IP pointing etc.

If anyone has done this before, is it possible to please write up a dummy’s guide that goes through everything. I am quite unconfident and my skills are nonexistent in this field.

Pretty please.

  • ShortN0te@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    12 hours ago

    But still, how would verify if the config is good or not? For example if it exposes root?

    • irmadlad@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      You could (should?) run it on a test server/VPS before committing anything to production. I have a little VPS set up just for this purpose. Spin something up on it and observe.

    • theunknownmuncher@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      7 hours ago

      Yeah I’m not saying its perfect and LLMs are non-deterministic so it could give you some crap. You’re not wrong and it’s good to be aware of that. How do you verify some random stranger from the internet wasn’t an asshole and gave you malicious config? 🤷 The best answer is probably just that OP should heed the warning on the website they linked, if they have no confidence or relevant skills:

      THIS IS DELIBERATELY MALICIOUS SOFTWARE INTENDED TO CAUSE HARMFUL ACTIVITY. DO NOT DEPLOY IF YOU AREN’T FULLY COMFORTABLE WITH WHAT YOU ARE DOING.

      I pasted the OP unmodified into a local LLM and it gave me this:

      Paste this (replace  192.168.1.105 with your Acer’s local IP from Part 1.3): 
      
      server {
          listen 80;
          server_name wowsocool.com www.wowsocool.com;
      
          location / {
              proxy_pass http://192.168.1.105:8000/;
              proxy_set_header Host $host;
              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;
          }
      

      along with correct instructions on finding the IP of the laptop, port forwarding, and examples on how to set up DDNS for several popular providers. The only thing I can see that is wrong is the port should be 8893 instead of 8000 and they may want to proxy a different path to Nepenthes than /