IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
26.2k stars 1.43k forks source link

Onion services support #573

Open EthraZa opened 2 years ago

EthraZa commented 2 years ago

Looks like CasaOS is missing a very cool feature found on projects like Umbrel and Citadel that allow us to access our services online in a very secure way via the Tor network.

This is the Tor Onion Services (formerly known as “hidden services”).

It seems It could be implemented on bare bones, like Home Assistant suggests or as a docker app like (docker-tor-hidden-service or onionize-docker for example).

For what I can see, the benefits of CasaOS implementing it as a core service is to be able to better control it and auto route every enabled app via the onion network.

Hope that you guys can take a look at it.

ETWang1991 commented 2 years ago

We got it, Future version support

EthraZa commented 2 years ago

Wow, that's awesome! Does CasaOS have a roadmap or ETA site?

EDIT Just saw Projects link at right!

EthraZa commented 2 years ago

Just my 2c. I made a test with onionize-docker and it works like a charm. It detects running apps on the connected networks and generate onion services to all apps.

tst\docker-compose.yml

version: '3'
services:

  onionize:
    image: torservers/onionize
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
    networks:
      - bridge

  web:
    image: yeasy/simple-web:latest
    environment:
      - ONIONSERVICE_NAME=app
    ports:
      - 80:80
    networks:
      - bridge

networks:
  bridge:
    driver: bridge

run:

$ docker-compose up -d
Running ...

$ docker exec tst-onionize-1 cat /var/lib/tor/onion_services/app/hostname
xyz.onion

Open http://xyz.onion in Brave Tor Window or Tor Browser and profit.

ETWang1991 commented 1 year ago

At the moment we have limited manpower, I try to label and prioritize first.