Heimdall icon indicating copy to clipboard operation
Heimdall copied to clipboard

Heimdall Internet Reliance

Open escamudo opened this issue 3 years ago • 8 comments

I'm trying to run the Heimdall's v2 docker container in an organisation, whoever it is not allowed to have internet access. Is there anyway to disable the reliance on internet access?

When I start the docker image, I received an error from the curl trying to resolve the link " cURL error 6: Could not resolve host: appslist.heidmall.site".

escamudo avatar Jun 02 '22 12:06 escamudo

Until Heimdall's version 2.4.5 docker it was possible to run the docker without internet, after that version, i'm getting an internal error code 500. Whoever if I connect to the internet all disappeared.

In addition of the error in the last post I also getting this one:

[2022-06-02 12:33:35][19] Processing: App\Jobs\ProcessApps In StreamHandler.php line 146:
The stream or file "/var/www/localhost/heimdall/storage/logs/laravel-2022-0
6-02.log" could not be opened in append mode: failed to open stream: Permission denied

escamudo avatar Jun 02 '22 12:06 escamudo

You could copy the appslist and add a hosts file entry to point it to your local version, not tried to do that

KodeStar avatar Jun 29 '22 12:06 KodeStar

I just download the list.json file from appslist.heidmall.site I then hosted it on my own nginx docker container. Then I modified this file in the heimdall container listing the location of the json file back to my own server: /var/www/localhost/heimdall/config/app.php

jasonmeehan11 avatar Jul 03 '22 00:07 jasonmeehan11

wtf kind of newbie coding is this that requires external access to make this work offline?

ochompsky avatar Aug 10 '22 20:08 ochompsky

@ochompsky this is the second time today that you're using abusive language in unnecessary comments to issue reports. Please refrain from doing so. Thanks.

This is a final warning.

aptalca avatar Aug 10 '22 21:08 aptalca

This kind of defeats the purpose of being self-hosted. I disable internet access for any service that does not need internet access, Heimdall and any other static hosts fall into that category. This also means that if someone's internet connection fails, their 'self-hosted' services no longer work. Is there a guide on self-hosting the files required for Heimdall to work? Something to do with appslist.heidmall.site?

LeehamElectronics avatar Aug 24 '22 03:08 LeehamElectronics

This kind of defeats the purpose of being self-hosted. I disable internet access for any service that does not need internet access, Heimdall and any other static hosts fall into that category. This also means that if someone's internet connection fails, their 'self-hosted' services no longer work. Is there a guide on self-hosting the files required for Heimdall to work? Something to do with appslist.heidmall.site?

read my comment above, its actually very easy to host the file yourself.

jasonmeehan11 avatar Aug 24 '22 13:08 jasonmeehan11

Maybe the solution is to cache the appslist data locally and check for updates on a schedule, with a notification when there is an update available.

eekdood avatar Sep 20 '22 17:09 eekdood

Until Heimdall's version 2.4.5 docker it was possible to run the docker without internet, after that version, i'm getting an internal error code 500. Whoever if I connect to the internet all disappeared.

In addition of the error in the last post I also getting this one:

[2022-06-02 12:33:35][19] Processing: App\Jobs\ProcessApps In StreamHandler.php line 146: The stream or file "/var/www/localhost/heimdall/storage/logs/laravel-2022-0 6-02.log" could not be opened in append mode: failed to open stream: Permission denied

It was simple to solve the problem if you used the Heimdall Docker image. So the steps are as follows:

  • To begin, get the "list.json" file from the Heimdall site " https://appslist.heimdall.site/list.json "

  • Then copy the file into the " /var/www/localhost/heimdall/public/ "

  • And modify the following lines in the " /var/www/localhost/heimdall/config/app.php " file: #From:
    'appsource': env('APP SOURCE,'https://appslist.heimdall.site/'), #TO:
    'appsource': env('APP SOURCE,'https://localhost/'),

  • Finally, check if the server displays the file 'https://localhost/list.json'

escamudo avatar Oct 25 '22 16:10 escamudo

Until Heimdall's version 2.4.5 docker it was possible to run the docker without internet, after that version, i'm getting an internal error code 500. Whoever if I connect to the internet all disappeared. In addition of the error in the last post I also getting this one: [2022-06-02 12:33:35][19] Processing: App\Jobs\ProcessApps In StreamHandler.php line 146: The stream or file "/var/www/localhost/heimdall/storage/logs/laravel-2022-0 6-02.log" could not be opened in append mode: failed to open stream: Permission denied

It was simple to solve the problem if you used the Heimdall Docker image. So the steps are as follows:

  • To begin, get the "list.json" file from the Heimdall site " https://appslist.heimdall.site/list.json "
  • Then copy the file into the " /var/www/localhost/heimdall/public/ "
  • And modify the following lines in the " /var/www/localhost/heimdall/config/app.php " file: #From: 'appsource': env('APP SOURCE,'https://appslist.heimdall.site/'), #TO: 'appsource': env('APP SOURCE,'https://localhost/'),
  • Finally, check if the server displays the file 'https://localhost/list.json'

This is a very kludgy method to achieve something that should standard and default. I'm nearly with ochompsky on the level of frustration. I think Heimdall is extremely well done in every other aspect aside from this. Nice clean look, easy-to-use interface, couldn't ask for more, it's awesome. Many thanks that went into its development. For the purpose that it serves, i.e. a beautiful site to bookmark one's links, having to rely on an external source in order to function is egregious.

DrDoug88 avatar Oct 27 '22 13:10 DrDoug88

You don't have to change any source files, just change/add APP_SOURCE=https://localhost/ in the .env. The appslist is frequently updated hence it pulling from there. I'll look into making it more localhost friendly though. Maybe we could fallback to a local version if a remote one isn't accessible.

KodeStar avatar Nov 14 '22 15:11 KodeStar

We added a wiki page describing how to self host the apps, see: https://github.com/linuxserver/Heimdall-Apps/wiki/Offline-or-Selfhosted-Apps

Please provide feedback if you encounter issues there.

keriati avatar Dec 22 '22 10:12 keriati