Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. ZeroNet

ZeroNet

Scheduled Pinned Locked Moved App Wishlist
26 Posts 7 Posters 4.4k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #12

    There's no git repo, is it? What is the error though? Proxying does not work at all? I have no idea really about the app.

    robiR 1 Reply Last reply
    0
    • girishG girish

      There's no git repo, is it? What is the error though? Proxying does not work at all? I have no idea really about the app.

      robiR Offline
      robiR Offline
      robi
      wrote on last edited by robi
      #13

      @girish no it's entirely maintained "off clearnet", locally and within ZeroNet ecosystem. There are other unmaintained forks with repos, but they're old and buggy.

      If installed on rw filesystem is can also self-update from there. It's really cool.

      Not sure how to handle that yet, however the code itself checks it's own version bumps, so you can get notified of that. It might be good to run most of it from /app/data

      If tor is added, it can also use it to have a tor onion service presence or just browse. There is another bundle .zip with those added as of the end of Jan.

      So for this src, unzip, pip install -r requirements.txt and set a zeronet.conf with ui_host = <app hostname> and ui_ip = * so it can use the internal network and localhost.

      There is also an example Dockerfile in there that uses an alpine image.

      Proxying works partially which is the frustraction, because some calls work and yet others don't so the beautiful pages don't load properly, missing assets, etc, and lots of 404s in the debug log.

      I tried making all those locations as exceptions in nginx config, to no avail. So I must be missing something silly.

      Conscious tech

      1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by robi
        #14

        New version dropped today: 0NetDWFsrc v10.02.24 Rev6008.zip

        Linux bundle with latest tor binaries: 0NetDWFlinux v10.02.24 Rev6008.zip

        Mac bundle with latest tor binaries: 0NetDWFmac v10.02.24 Rev6008.zip

        Windows bundle with latest tor binaries: 0NetDWFwin v10.02.24 Rev6008.zip

        How to run:
        Unzip, chmod 755 <dir>
        edit zeronet.conf & nginx.conf
        cd <dir>
        ./ZeroNet.sh

        Conscious tech

        1 Reply Last reply
        0
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by robi
          #15

          Here's an example of my zeronet.conf & nginx.conf trying to get it working for a few days now ;-/

          I get 404s in the log/debug.log for / and the Websocket requests which breaks the page from loading with the message: UiServer Websocket was lost. Reconnecting.. immediately after it connects ;-/

          https://paste.cloudron.io/dayaqeciho.properties

          Not sure what's breaking it from the proxy perspective, as it works from a localhost install.

          Additional hints from the original, now outdated version, https://zeronet.io/docs/faq/

          Conscious tech

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #16

            sorry, I am not installing crypt stuff πŸ™‚

            robiR L 2 Replies Last reply
            0
            • girishG girish

              sorry, I am not installing crypt stuff πŸ™‚

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #17

              @girish sorry? You're mistaken, it's not crypto/chain/coins stuff at all. Just python.

              It only looks like it since it uses a library that makes those long addresses unique. That's it.

              Conscious tech

              girishG 1 Reply Last reply
              0
              • robiR robi

                @girish sorry? You're mistaken, it's not crypto/chain/coins stuff at all. Just python.

                It only looks like it since it uses a library that makes those long addresses unique. That's it.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #18

                @robi ah! I completely misread what this project is. I saw Bitcoin in the title and tuned out πŸ˜„

                1 Reply Last reply
                1
                • girishG girish

                  sorry, I am not installing crypt stuff πŸ™‚

                  L Offline
                  L Offline
                  LoudLemur
                  wrote on last edited by
                  #19

                  @girish said in ZeroNet:

                  sorry, I am not installing crypt stuff πŸ™‚

                  Just curious why you don't like crypto...

                  girishG necrevistonnezrN 2 Replies Last reply
                  0
                  • L LoudLemur

                    @girish said in ZeroNet:

                    sorry, I am not installing crypt stuff πŸ™‚

                    Just curious why you don't like crypto...

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #20

                    @LoudLemur nothing to dislike (or like), mostly I don't have much idea about it πŸ™‚

                    1 Reply Last reply
                    1
                    • L LoudLemur

                      @girish said in ZeroNet:

                      sorry, I am not installing crypt stuff πŸ™‚

                      Just curious why you don't like crypto...

                      necrevistonnezrN Offline
                      necrevistonnezrN Offline
                      necrevistonnezr
                      wrote on last edited by necrevistonnezr
                      #21

                      @LoudLemur said in ZeroNet:

                      @girish said in ZeroNet:

                      sorry, I am not installing crypt stuff πŸ™‚

                      Just curious why you don't like crypto...

                      I personally don’t β€žlikeβ€œ crypto because the bad far outweighs any good coming from it: It is the catalyst for the shitshow of cybercrime we find ourselves in today, where little assholes in Russia or Iran cripple and extort hospitals. It keeps North Korea alive. It fuels the Mafia. It enables scams. And that’s just the tip of the iceberg. It’s just a general bad idea to deprive states and state unions from control over the money system.

                      1 Reply Last reply
                      1
                      • robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by robi
                        #22

                        Works great from a desktop, eazy peasy.

                        However, after a week of trying all combinations, I am exhausted.
                        I still can't get the ZeroNet page to display all assets, just looks blank and loses its websocket connection, how infuriating!

                        b0746683-6d94-457d-9cc0-1f446983641a-image.png

                        Here's the two location directives I've tried for nginx.conf:

                            location / {
                                proxy_pass http://172.18.16.63:43110;
                                proxy_set_header Host $host;
                                proxy_http_version 1.1;
                                proxy_read_timeout 1h; # for long live websocket connetion
                                proxy_set_header Upgrade $http_upgrade;
                                proxy_set_header Connection "upgrade";
                                proxy_cache_bypass $http_upgrade;
                        
                                proxy_set_header X-Request-Start "t=${msec}";
                                proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header X-Forwarded-Proto "https";
                        
                                add_header X-Frame-Options "SAMEORIGIN";
                                add_header X-XSS-Protection "1; mode=block";
                                add_header X-Content-Type-Options "nosniff";
                        
                                if ($http_user_agent ~ CloudronHealth ) { 
                                        return 200;          #Healthcheck fix
                                }
                                proxy_redirect off;
                            }
                        
                            location /ZeroNet-Internal/Websocket {
                        #        proxy_pass http://websocket;
                                proxy_pass http://172.18.16.63:15441;
                        #        proxy_set_header Host $host;
                                proxy_http_version 1.1;
                                proxy_read_timeout 1h; #for long live websocket connetion
                                proxy_set_header Upgrade $http_upgrade;
                                proxy_set_header Connection "upgrade";
                                proxy_cache_bypass $http_upgrade;
                        
                                proxy_set_header X-Request-Start "t=${msec}";
                                proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header X-Forwarded-Proto "https";
                                proxy_redirect off;
                            }
                        
                        
                        

                        I also tried running it from a Surfer app instead of LAMP app, same result. (But they are not websocket apps)

                        Here's a sample zeronet.conf

                        [global]
                        ui_host = zeronet.1heal.org
                        #fileserver_ip = 172.18.16.63
                        fileserver_port = 15441
                        ui_ip = *
                        # ui_port = 43110
                        tor = enable
                        tor_proxy = localhost:9050
                        tor_controller = localhost:9051
                        

                        I hope one of you can figure out what is going wrong!

                        Conscious tech

                        1 Reply Last reply
                        1
                        • robiR Offline
                          robiR Offline
                          robi
                          wrote on last edited by robi
                          #23

                          A big thanks to @Kubernetes for the collaboration and assistance during his busy day!

                          The testing package is available here: https://git.cloudron.io/kubernetes/cloudron-zeronet

                          @staff @AppDev please take a look at how to solve the websocket issue and tor finding its linked libraries that are in the same directory.

                          tor starts successfully when the LD_LIBRARY_PATH is set to its location.

                          If you'd like to know more about how it works, see the FAQ page -> https://zeronet.io/docs/faq/

                          Conscious tech

                          LanhildL 1 Reply Last reply
                          2
                          • L Offline
                            L Offline
                            LoudLemur
                            wrote on last edited by
                            #24

                            Well done on advancing zeronet so far!
                            I just thought I would mention this other thread here for those who like zeronnet:

                            Lokinet
                            https://forum.cloudron.io/topic/5824/lokinet-on-cloudron?_=1707942770501

                            1 Reply Last reply
                            1
                            • robiR robi

                              A big thanks to @Kubernetes for the collaboration and assistance during his busy day!

                              The testing package is available here: https://git.cloudron.io/kubernetes/cloudron-zeronet

                              @staff @AppDev please take a look at how to solve the websocket issue and tor finding its linked libraries that are in the same directory.

                              tor starts successfully when the LD_LIBRARY_PATH is set to its location.

                              If you'd like to know more about how it works, see the FAQ page -> https://zeronet.io/docs/faq/

                              LanhildL Online
                              LanhildL Online
                              Lanhild
                              App Dev
                              wrote on last edited by
                              #25

                              @robi said in ZeroNet:

                              please take a look at how to solve the websocket issue and tor finding its linked libraries that are in the same directory.

                              Thanks for the heads up. I don't have enough knowledge about this aspect to help though.

                              Next time, consider not mentioning staff or app devs groups, as it sends an email to each members by default. I'm sure the people that wish to contribute would regardless of a notification πŸ™‚

                              robiR 1 Reply Last reply
                              1
                              • LanhildL Lanhild

                                @robi said in ZeroNet:

                                please take a look at how to solve the websocket issue and tor finding its linked libraries that are in the same directory.

                                Thanks for the heads up. I don't have enough knowledge about this aspect to help though.

                                Next time, consider not mentioning staff or app devs groups, as it sends an email to each members by default. I'm sure the people that wish to contribute would regardless of a notification πŸ™‚

                                robiR Offline
                                robiR Offline
                                robi
                                wrote on last edited by
                                #26

                                @Lanhild Thanks for the note, didn't know it emailed.

                                Conscious tech

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Bookmarks
                                • Search