@jdaviescoates said in How to setup email notifications?:
@hcj-online I've not tried this yet,
Just tested it, and yep, that works.
Note: Hostname = your Outgoing Mail (SMTP) server address (which will be your my. domain unless you've changed it in the settings at the bottom of Email settings at https://my.yourdomain.coop/#/email)
I put 587 for port and left the security as None / STARTTLS
[image: 1677932875664-7fb6fe6d-9663-4caf-b2ac-01e81fade89a-image.png]
Also, when I tried using e.g. {{STATUS}} etc in the Custom Subject settings it didn't actually work, I just got subjects like this coming through:
[image: 1677932786598-f7226dc4-21c8-495c-99b7-1beba6d6d32e-image.png]
So I recommend leaving that blank to keep the defaults.
BTW, if you end up opening upstream for TCPS, you should also tell them to add STARTTLS as an option.
openssl s_client -connect mail.domaincom:25 -showcerts -starttls smtp will help test the cert of a mail server for protocols like sieve, smtp that use starttls.
@matbrgz I think that ends up protected all of uptime kuma and not just the status page . But of course, one can always tinker the configs in such a way that only specific pages are protected (one has to also investigate protecting API requests to the backend etc). I think this has to be implemented in uptime kuma itself to be fixed reliably.
Okay my bad. The last time I did this was for a Wordpress which used Apache. You can also do basic auth with NGINX but the configuration for app packages is read only (as far as I remember).
@girish said in Uptime Kuma - Securing Status Pages:
Oh, does that password make the status pages protected too?
I assumed that because the Dashboard was not reachable without logging in but sadly it is not the case.
I think there is no easy way for us to fix that and it will remain an upstream issue.
@girish not sure about 0 size ever, but I don't think so.
Anyway, after deleting some new .bak files from /app/data/data, Cloudron System Info now reporting a more reasonable 455Mb size for the deployed app.
Will try and keep an eye on it.
May export, uninstall, reinstall, import.
Although I think I did that once before.
Clearing all stats and shrinking database gives a 1.5Mb size.
@humptydumpty to reliably update i ended up always updating the docker tag to the desired version. With the tag updated you just need to run flyctl deploy again.
@JLX89 have you also made sure, the the existing uptime app has been updated to the latest version with .1 instead of.0?
For me it then immediately worked.
What was a bit strange is that there is no validation for configured domains in Kuma. You simply enter it as it's domain in the dashboard and then it will be served through it. I have now my Kuma reachable from uptime.domain and the public status page at status.domain.
@luckow for reference, this is the Expression I have in my 'text' field:
{{JSON.stringify($json["body"])}}
I output the entire JSON body stringified because I use this webhook for multiple incoming notifications and they contain different payloads. But you can try and extrapolate from here by bringing in just the fields you need, i.e msg, monitor, etc.