api_url is incorrect when CachetHQ send a email in button "manage subscriptions"
See original GitHub issuewith the following docker-compose (I’m behind a reverse proxy: traefik)
version: "3"
services:
postgres:
image: postgres:10-alpine
volumes:
- ./db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgress
- POSTGRES_PASSWORD=postgress
- POSTGRES_DB=postgress
networks:
- cachethq_internal
restart: always
cachet:
image: cachethq/docker:2.3-latest
networks:
- ak_cachethq_outside
- ak_cachethq_internal
# environment:
#...
depends_on:
- postgres
restart: always
cachet_url_monitor:
image: mtakaki/cachet-url-monitor
networks:
- ak_cachethq_internal
depends_on:
- cachet
volumes:
- ${PWD}/.config.yml:/usr/src/app/config/config.yml:ro
restart: always
networks:
cachethq_outside:
external:
name: traefik_proxy
cachethq_internal:
driver: bridge
And the following configuration:
endpoint:
url: https://myworpresspage.com
method: GET
timeout: 1 # seconds
expectation:
- type: HTTP_STATUS
status_range: 200-300
- type: LATENCY
threshold: 1
- type: REGEX
regex: ".*WORDPRESS FOOTER HOOK.*"
allowed_fails: 0
cachet:
api_url: http://cachet:8000/api/v1
token: xxxxxxxxxxxxxxxxxxx
component_id: 1
metric_id: 1
action:
- CREATE_INCIDENT
- UPDATE_STATUS
public_incidents: true
frequency: 30
latency_unit: ms
It works perfectly, but when cachetHQ sends an email, in the URL inside the email, redirects me to http://cachet:8000/subscribe/manage/xxxxxxx instead of https://status.myworpresspage.com/subscribe/manage/xxxxxxx in button “manage subscriptions”
I do not understand the API very well, but you could place an API URL and a LINK (A hyperlink to the component)???
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
cachet-url-monitor - Bountysource
Hey, I troubleshooted and error where I got a "Traceback" error from python. I put the wrong IP into the config.yml because I...
Read more >Configuring Subscribers - Cachet Documentation
Once you've Configuring Mail, you need to login to your Dashboard and enable the Allow people to signup to email notifications? setting found...
Read more >Alerta Documentation - Read the Docs
An Alerta heartbeat is a periodic HTTP request sent to the Alerta API to indicate normal operation of the origin of the heartbeat....
Read more >Laracasts Forum
Hi , I want to use username instead of E-mail address in L5 authentication system I changed login.blade.php like this : @extends('app') @section('content') ......
Read more >Alibaba Cloud
Alert subscription and push ... After the Added message appears, Show Key is ... then disabled and all two-factor authentication methods become invalid....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue, because
APP_URL
/Site URL
is not taken into account. Here is an ugly hotfix: https://github.com/CachetHQ/Cachet/issues/3952Have you tried setting up the
Site URL
under/dashboard/settings/setup
? Have you tried putting the public hostname there? If that doesn’t, I recommend you reaching out to the folks that owns CachetHQ. We own only until we create the incident on cachet and anything after that is under CachetHQ’s ownership.Would mind giving an update after you try this out?