Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Ability to specify HTTP protocol for connecting to local Gotify server #692

Closed
OPerepadia opened this issue Sep 20, 2024 · 1 comment

Comments

@OPerepadia
Copy link

OPerepadia commented Sep 20, 2024

Is your feature request related to a problem? Please describe.
I am trying to set up notifications to a local Gotify server. It's using http protocol and it is not exposed to the Internet.
However, scrutiny defaults to https, and connection fails.

Describe the solution you'd like
An ability to connect to the local Gotify server using http protocol.

Additional context

My yaml config is like this

notify:
  urls:
    - "gotify://10.0.0.1:8030/BsbtZ6qVwOzOdeu"

And here are the errors I see in the logs when it tries to send notification:

scrutiny  | time="2024-09-20T08:51:35Z" level=info msg="Sending notifications to gotify://10.0.0.1:8030/BsbtZ6qVwOzOdeu" type=web
scrutiny  | time="2024-09-20T08:51:35Z" level=error msg="One or more errors occurred while sending notifications for gotify://10.0.0.1:8030/BsbtZ6qVwOzOdeu:" type=web
scrutiny  | time="2024-09-20T08:51:35Z" level=error msg="[failed to send notification to Gotify: error sending payload: Post \"https://10.0.0.1:8030/message?token=BsbtZ6qVwOzOdeu\": http: server gave HTTP response to HTTPS client]" type=web

I also tried explicitly adding "http" to the url string, but then it starts looking like this: https://http//10.0.0.1:8030/BsbtZ6qVwOzOdeu which is wrong
Maybe I missed something and there is already a way to achieve this?

@AnalogJ
Copy link
Owner

AnalogJ commented Sep 20, 2024

we use the shoutrrr library to send notifications. You will want to open an issue with them if you need to support the http protocol.

@AnalogJ AnalogJ closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants