6
submitted 1 year ago* (last edited 1 year ago) by ksynwa@lemmygrad.ml to c/technology@lemmy.ml

Title is a bit vague because I don't know the correct terms to phrase it properly.

I have a Raspberry Pi that I use to run jellyfin, transmission, blocky, soju. Recently I added libreddit to it seeing how the rate limits are affecting public instances.

The problem is that currently if I need to go my libreddit instance, I have to go to 192.168.0.x:xxxx which is extremely unfun to type.

Is there a way I can access it more elegantly? One solution I found was to configure blocky with a custom DNS that points to the RPi where I can configure an nginx reverse proxy so that lr.rpi.local for example serves libreddit.

Any other ideas for this?

top 5 comments
sorted by: hot top controversial new old
[-] sokkies@lemmyrs.org 4 points 1 year ago

You can edit the hosts file on your local device, but I would recommend you take a look at using the rpi for a pihole/ DNS server. Then you can edit the hosts file on the PI to make it so that any device on your network redirects with the custom name.

Hell if you want to have fun install nginx proxy manager then you can set up routing so that anything is easily accessible from inside you net ie: rpi/jellyfin or rpi/soju.

If youre interested in doing anything like that and youre stuck ill help with any questions. I setup docker containers with proxies all the time

[-] mkwarman@lemmy.world 3 points 1 year ago

You can configure many routers to act as DNS servers, then advertise themselves to client devices as a DNS server (with a secondary like 8.8.8.8 or whatever). Then you can just use the hostname of the device you want to access and as long as your client device is using your router for DNS it will resolve correctly.

How specifically to set this up depends on your networking equipment

[-] fuser@quex.cc 3 points 1 year ago* (last edited 1 year ago)

assuming you are using a desktop os, e.g windows/linux, put an entry in /etc/hosts, e.g. 192.168.0.x yourname

then you can use yourname:xxxx

[-] ksynwa@lemmygrad.ml 1 points 1 year ago
[-] dave@feddit.uk 2 points 1 year ago

Not sure if this helps, as I’m not 100% certain how I set this up (it was too long ago), but by giving my rpi a hostname I can simply use ‘pizero.local’ from my desktop machine. I don’t run a DNS server per se but maybe look into that kind of dhcp / dns option?

load more comments
view more: next ›
this post was submitted on 25 Jul 2023
6 points (68.8% liked)

Technology

34437 readers
190 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS