Would it be possible for me to make comments to other instances etc?

Solved: I can’t, it would only work with a public domain.

40 points

No, ActivityPub is a push protocol. Other instances send data to your instance via HTTPS and only HTTPS. So you need at minimum a public domain and web server with TLS enabled.

Some people use Cloudflare tunnels to avoid opening ports or just get a cheap VPS to forward the traffic home without exposing the home IP.

permalink
report
reply
0 points

You do realize all this is easily done with a reverse proxy + DuckDNS?

permalink
report
parent
reply
4 points

Wouldn’t you need a publically available IP? DuckDNS is only for dynamic IP’s that is public, yes?

permalink
report
parent
reply
3 points

Duckdns is pretty much a service that offers free domain names… that could point to any public IP. (I have seen setups where local IPs are used just for HTTPS). So its good for instances as HTTPS can be achieved without buying domain name.

permalink
report
parent
reply
3 points

Works with anything that can open ports. DuckDNS works by pinging their service from anywhere to update the target IP for the subdomain.

permalink
report
parent
reply
-2 points

Why not HTTP :c

permalink
report
parent
reply
17 points

Data send via HTTP is not encrypted. That’s bad.

permalink
report
parent
reply
-4 points

I want it encrypted but I don’t want to ask a 3rd party to get a certificate.

permalink
report
parent
reply
7 points
*

Plain HTTP should be considered obsolete. Also it makes impersonating websites harder (but not impossible)

permalink
report
parent
reply
12 points

Additionally, HTTPS if very easy to set up nowadays and the certificates are free1.

1: Assuming you have a public domain name, but for ActivityPub that’s already a requirement due to the push nature of the protocol.

permalink
report
parent
reply
12 points

I don’t know enough about ActivityPub to say for sure but I believe that in order to federate properly (grab posts and comments from other servers as well as sending posts and comments to other servers) you need to have a publicly accessible domain with SSL. Hosting on localhost ( the computer you want to access from) is pointless if you don’t have a reverse proxy set up to actually let others see your server online.

permalink
report
reply
10 points

yes its possible. can you do it? dunno, it can get complex.

that youre asking here means no, you cannot.

permalink
report
reply
10 points
*

Depends on what you mean by “localhost”. Localhost is just the computer you’re currently logged in / sitting in front of… But I don’t know what kind of computer that is and how it is connected to the internet.

You’d need a webserver that is reachable from the internet to be able to have a Lemmy instance that can interact with other parts of the network. The webserver itself can run on any machine. You just need to make it accessible from the internet. So you either have a connection to the internet that allows hosting stuff… Use port forwarding in your router (at home) or if that’s all not available use a tunnel or VPN.

I really don’t know were you’re trying to get… If your question is: Can I selfhost stuff from a domestic internet connection: The answer is: Probably. Depends a bit on the provider and setup.

If your question is: Do I need a domain name? The answer is: Probably yes if your (external) IP address changes frequently.

permalink
report
reply
6 points

Each instance is available on someone’s localhost.

permalink
report
reply

Selfhosted

!selfhosted@lemmy.world

Create post

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:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

Community stats

  • 3.5K

    Monthly active users

  • 3.4K

    Posts

  • 77K

    Comments