Giter Site home page Giter Site logo

Comments (17)

qhgary avatar qhgary commented on July 19, 2024 1

good idea!

from dashy.

liss-bot avatar liss-bot commented on July 19, 2024

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

Hi
Will look into this as well and test for myself.

But I really really strongly suggest you to look into nginxproxymanager or any other similar reverse proxy, they can manage certificate renewal and automatically add them to all your services.

But here is the part in the docs that explains how to add a ssl cert:
https://dashy.to/docs/management/#auto-ssl

from dashy.

qhgary avatar qhgary commented on July 19, 2024

cert:

Let me clarify one thing:
I’d like to use dashy to check the other https services rather than accessing dashy via https.

Say, there’s one https service accessing via https://emby.nas (it will be redirected to http://192.168.0.2:xxxx)
I’ve generated a self-signed CA root and signed it.
What I’d like to know is how can I import the pub key into dashy to enable the status check of https://emby.nas. It seems the default setting cann’t enable dashy to check it. But when I fill in “http://192.168.0.2:xxxx” in the status check url, there’s no problem.

There’s no problem in my local dns and I’ve already checked it. There’re dozens of items like this, so I cann’t fill in all the IP one by one and I may also change the IP in the future.

I can also open “https://emby.nas” using the browser on my computer after importing the CA pub key into my computer. So the CA cert is also OK and I just need to know how to import it into dashy to enable it check the other https services on my local network.

Thanks a lot and expect to your response.

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

should I import the pub key to dashy? and how? I can’t find the solution in the doc.

You asked, so I provided you the guide.

Most likely what you are experiencing is a dns issue, I once had similar problems, in the docker container shell(so inside dashy) you can install nslookup to test if dns Resolution works or not.

This can be done with:
Host shell: 'sudo docker exec -it {container_name} /bin/sh'

Then you should get into the docker containers shell where you can do 'apk update' and 'apk add bind-tools' then you can normally test with 'nslookup emby.nas' to see if the correct adress gets resolved.

I know dns inside a container can be a bit tricky that's why I ask you to verify this.

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

If you can verify dns works then you can add this option:
statusCheckAllowInsecure: true

As described here:
https://dashy.to/docs/status-indicators/

from dashy.

qhgary avatar qhgary commented on July 19, 2024

If you can verify dns works then you can add this option: statusCheckAllowInsecure: true

As described here: https://dashy.to/docs/status-indicators/

It seems that the option is for http rather than https? The HTTPS which I wanna check is self-signed using my CA. And those HTTPS can be accessed via PC browser after importing self-signed CA pub key.

This is what I see in the doc you gave:
“If the URL you are checking has an unsigned certificate, or is not using HTTPS, then you may need to disable the rejection of insecure requests. This can be done by setting statusCheckAllowInsecure to true for a given item.”

from dashy.

qhgary avatar qhgary commented on July 19, 2024

good news. I've partially resolved it!
Just export NODE_EXTRA_CA_CERTS=/path/to/file/selfsigned-CA.pem

All the https services can be checked now, terrific!

But there's only one https service failed: jackett!
I've no idea what's the reason, and the service is OK and can be opened successfully by clicking. (local address: https://jackett.nas) So I think there's no problem with my local DNS or https service itself. But the status check is failing with this prompt like "ERR_FR_TOO_MANY_REDIRECTS"

What does it mean? How to resolve it?

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

What does it mean? How to resolve it?

That should be fairly straightforward, in the UI editor there is an option redirects, you can set it to a higher number like 10 and test again.

https://dashy.to/docs/configuring/#sectionitem

It means the site redirected a bit more than dashy allows to, but this can easily be set higher.

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

If you can verify dns works then you can add this option: statusCheckAllowInsecure: true

As described here: https://dashy.to/docs/status-indicators/

It seems that the option is for http rather than https? The HTTPS which I wanna check is self-signed using my CA. And those HTTPS can be accessed via PC browser after importing self-signed CA pub key.

This is what I see in the doc you gave:
“If the URL you are checking has an unsigned certificate, or is not using HTTPS, then you may need to disable the rejection of insecure requests. This can be done by setting statusCheckAllowInsecure to true for a given item.”

That is not correct,
A lot of services include self signed certs, for example pfsense, portainaer, those certs are not signed by anyone, so the browser shows a message when visiting the service-> unsecure connections or so, even if it is https and if you run on http you also can enable this function to allow dashy to check those.

from dashy.

qhgary avatar qhgary commented on July 19, 2024

What does it mean? How to resolve it?

That should be fairly straightforward, in the UI editor there is an option redirects, you can set it to a higher number like 10 and test again.

https://dashy.to/docs/configuring/#sectionitem

It means the site redirected a bit more than dashy allows to, but this can easily be set higher.

I cannot find how to modify it in the UI so I try to modify the config.yml instead.
图片

do you mean modify it like this? But the validator shows error :"should not have additional property: statusCheckMaxRedirects"
{
"title": "jackett",
"icon": "hl-jackett",
"url": "https://jackett.nas",
"statusCheckMaxRedirects": 10,
"id": "2_851_jackett"
},

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

You first have to click enable status check in the UI, then the option should appear :).

from dashy.

qhgary avatar qhgary commented on July 19, 2024

You first have to click enable status check in the UI, then the option should appear :).

And in fact the appConfig already set status check to default, should I click "enable status check" again to enable the statusCheckMaxRedirects" option?
Then,
I clicked "enable status check"
save it to the file
rebuilt the project
open it again
there's "enable status check", but no "statusCheckMaxRedirects" option

图片

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

Let me test this, will get to this in 2 hours when I'm home. There should actually be an option, have used it myself.

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

For me it looks like this:
To be honest, not fully sure why you are not seeing those options, are you running the latest dashy?

@Lissy93 Have you got any idea here?

image

from dashy.

qhgary avatar qhgary commented on July 19, 2024

It's very strange that although I wrote "latest" tag in the docker-compose file, I still pulled the wrong version which is not 3.0.0.
I changed the "latest" tag to 3.0.0 and the "status check - Max Redirects" appear now.

But the jackett problem still exists, even I changed the number to 10. I got "ERR_FR_TOO_MANY_REDIRECTS" prompt when I put cursor over the item. When I click the item, there's no problem to open jackett.

Or, is there any method that I got green light even I got "ERR_FR_TOO_MANY_REDIRECTS" error, just ignore this specific error.

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on July 19, 2024

Hmm good to see, that the option is now there.

Is there any specific subpath, you need to take when entering jackett?

Like jackett.nas/login if so the change the statuscheck URL.

Can you write inspecting what html code you get in your browser when you are not logged into jackett, e.g. what happens when a not logged in user visits jacket.nas ? Can you see a green 200 OK in developer tools->network tab->reload the page

from dashy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.