So, I’ve been trying to accomplish this for a while. First I posted asking for help getting started, then I posted about trying to open ports on my router. Now, I proudly post about being able to show the world (for the first time ever) my abysmal lack of css and html skills.

I would like to thank everyone in this community, specially to those who took the time to answer my n00b questions. If you’d like to see it, it will be available at: https://kazuchijou.com/

(Beware however, for you might cringe into oblivion and back.)

Since this website is hosted on my desktop computer, there will be some down-time here and then, however I’ll leave it on for the next 48 hours (rip electricity bill) only for you guys to see. <3


Now, there are a couple of things that need addressing:

I set it up as a cloudflare tunnel and linked it to my domain. However, I still don’t know any docker at all (despite using it for the tunnel), and the process was too incredibly and stupidly easy. I don’t think I learned as much as I expected and I didn’t feel challenged at all.

The original idea was to do some port forwarding. (This was foolish and a bit of a waste of time). Despite getting a “public-ip-address” from my ISP, I still was unable to open ports successfully. I kept getting the same error again and again. If you’d like to read my original post about port forwarding you may follow this link: “[Solved] ((lie)) Noob stuck on port-forwarding wile trying to host own raw-html website. Pls help”.

While I know doing this represents a security risk, I still wanted to at least have a small success with port forwarding. I just wanted to have the raw-internet-connection experience, you know? like, the basics and such. And Cloudflare is holding my hand way too hard, I want to feel like I can shoot myself in the foot (without actually doing so)

But to be honest, I’m quite happy with the outcome. There are many other avenues I’d like to explore in the future, like setting up a reverse proxy with nginx or even darknet hosting (as sugested by another commentor).

I hope to keep learning and some day help another poor soul like myself in a similar situation. I thank you again guys, you’re the best.

[TL;DR] This is the best and most helpful community ever! thx <3

  • ipkpjersi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 days ago

    Self-hosting is definitely a ton of fun. I love being able to host my own services, whether it’s using like a server in the cloud or my own hardware.

    • KazuchijouNo@lemy.lolOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 days ago

      Definitely!

      You get to learn a lot, and most importantly, you become self suficient and free. No need to depend on corporations to manage your services, because you can do that yourself.

      Want your own cloud? Just run and configure nextcloud on your server :D

      Want your own personal blog? Make it yourself!

      It’s so fun!

  • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 days ago

    Just in case: If your storage is completely full all of a sudden, check /var/log/nginx if you haven’t pointed the logs elsewhere.

    I know I was pretty confused to find my storage absolutely full, then I found the multi-GB error.log file. When a network interface it was listening on disappeared it filled with errors as such:

    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    2024/12/10 07:57:06 [alert] 20420#20420: accept4() failed (22: Invalid argument)
    

    (I just reproduced that now on-demand, thus the date.)

    There’s a tool called logrotate to take care of logs, but I just did the stupid and lazy thing…

    error_log /dev/null;
    

    Well, in case you get the idea to run NGINX in Termux, and then later you find your phone hot, stuck in a bootloop, it’s possible the error.log filled the storage causing Android to crash because it now can’t even write system files.
    Not that I would have done such thing…

    • KazuchijouNo@lemy.lolOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 days ago

      Thanks a bunch!
      I will certainly consider this, I had no idea nginx created these log files.

      If anything, I can just rm them into oblivion right?

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 days ago

        Sorta. If the log file is open then your rm won’t take effect until the application closes the file. You won’t see the file anymore but it will still be taking up space. So if nginx is running when you delete the logs you may need to either stop it or restart it depending on how nginx handles this.

    • KazuchijouNo@lemy.lolOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 days ago

      Uhhhh… Prayers?

      So far the only protection I’ve got is running it through a cloudflare tunnel. And that’s it.

          • Possibly linux@lemmy.zip
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            8 days ago

            “They’re the same picture”

            Not that I am saying it is bad necessarily. Cloudflare does add a extra level of protection. In fact I would say that the chances of a compromise go way down. My concerned is that a lack of knowledge could lead to a compromise.

            • KazuchijouNo@lemy.lolOP
              link
              fedilink
              English
              arrow-up
              0
              ·
              8 days ago

              Thanks! I appreciate your concern.

              This website is just a personal fun project, and I haven’t got anything to lose if it gets compromised. On the contrary I’ve gained a lot so far, and I might gain even more if something bad were to happen to it.

              No one can hack into the knowledge and experience I’ve gained so far.

              If you’ve got any advice on security tools, good practices, etc. I’d appreciate them! I may lack the knowledge, but not the will to learn more

              • tehn00bi@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                5 days ago

                Yeah, I bring this up because I’ve been playing around with a similar idea of a simple html website for documenting personal projects. My site still isn’t really live, but I have it running on a vm through a cloud flare tunnel, similar to you.

                • KazuchijouNo@lemy.lolOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 days ago

                  Yeah! That’s cool, I haven’t had any issues so far.

                  Everyday I get a bunch of logs of bots trying to access files and folders that don’t exist. It seems that they are targeting wordpress sites because all the files start with ‘wp-’ for example, some tried to access ‘wp-admin/credentials’, but since my site isn’t wordpress I’m not worried. Besides, I’m pretty sure that I could implement some rules on the firewall or even on nginx to block access to said directories by (for example) redirecting them to a different page.