• 2 Posts
  • 18 Comments
Joined 10 days ago
cake
Cake day: August 27th, 2025

help-circle











  • humanoidchaos@lemmy.cif.suOPtoSelfhosted@lemmy.worldHow to selfhost with a VPN
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    5
    ·
    5 days ago

    Thanks.

    It’s my understanding that https provides encryption for the data sent between you and the server. If you’re not sending any sensitive data, then the encryption shouldn’t be necessary.

    Don’t get me wrong, encryption is great even when it isn’t necessary. For my demonstration purposes though, I chose not to include it.

    I also believe it’s possible to set up HTTPS encryption without a domain name, but it might result in that “we can’t verify the authenticity of this website” warning in web browsers due to using a self-signed certificate.


  • It’s not dumb at all! Don’t be afraid to ask. I’m not an expert and still learning myself.

    The VPN is running on the same machine that I am hosting the website on. There may be some configuration you can do to perhaps have the connection routed through your raspberry pi with a VPN running on it to the machine that’s hosting the website, but I’m not sure how.

    Otherwise, you should be able to at the very least run the entire setup on a raspberry pi.





  • Thanks. I’m probably doing something wrong here.

    When I try to connect while self-hosting, I get stuck at “Connecting to update server” when Runescape is loading in the client window.

    In ~/.local/share/2009scape/config.json, I have:

    {
      "ip_management": "[VPN INTERNAL IP]",
      "ip_address": "[VPN INTERNAL IP]",
      "world": 1,
      "server_port": [VPN FORWARDED PORT],
      "wl_port": 43595,
      "js5_port": 43595,
      "ui_scale": 1,
      "fps": 0
    }
    

    I’ve made sure the changes persist by either setting the file to read-only, or just avoiding changing the server setting at the game client launcher.

    The only change I’ve made for the server was changing 2009scape-master/docker-compose.yml. I put the VPN port to the left side and left everything else the same.

    version: '3.3'
    services:
      app:
        build: .
        container_name: "2009scape_app"
        depends_on:
          - database
        restart: unless-stopped
        volumes:
          - "2009scape_app:/app"
        ports:
          - "[VPN FORWARDED PORT]:43595"
    

    Sorry if I come across as a novice. I’m still learning and any help is always appreciated.