22
submitted 3 years ago* (last edited 3 years ago) by starkcommando@lemmy.world to c/selfhosted@lemmy.world

For those of you who host their own Lemmy instance internally, are you able to log in to your Lemmy account after connecting with the local IP address?

I get SyntaxError: JSON.parse: unexpected character at line 1of the JSON data.

EDIT: I should mention I use OPNSense and when I visit the domain, I'm taken to the router's login page.

top 8 comments
sorted by: hot top new old
[-] mcmxci@mimiclem.me 7 points 3 years ago* (last edited 3 years ago)

I use a reverse proxy so I still use a DNS name to access internally.

[-] AES@lemmy.ronsmans.eu 1 points 3 years ago

This is the way

[-] w0odl@lemmy.radio 5 points 3 years ago

I believe some things are populated by your hostname in the lemmy configs so straight IP may break a few things.

[-] dandroid@dandroid.app 3 points 3 years ago

I had the same issue as OP when setting up my instance. Properly setting the domain name in all the config files fixed it for me. So I am assuming you are right.

[-] Yubishi@lemmy.one 4 points 3 years ago

When you say internally, do you mean behind a NAT, or something to that effect?

[-] starkcommando@lemmy.world 3 points 3 years ago

I mean from the same LAN.

[-] RespectfullyNo@sh.itjust.works 4 points 3 years ago

You’ll probably want to do it by dns name

[-] narshee@iusearchlinux.fyi 1 points 3 years ago

It worked on 0.17.4, but on 0.18.0 I get the error you get

load more comments
view more: next ›
this post was submitted on 04 Jul 2023
22 points (92.3% liked)

Selfhosted

60910 readers
1202 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS