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

Need Help Removing the Service URL in discord notification #4360

Closed
2 tasks done
snaponeph opened this issue Jan 12, 2024 · 3 comments
Closed
2 tasks done

Need Help Removing the Service URL in discord notification #4360

snaponeph opened this issue Jan 12, 2024 · 3 comments
Labels
area:monitor Everything related to monitors area:notifications Everything related to notifications help

Comments

@snaponeph
Copy link

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Need Help Removing the Service URL in the discord notification so i can Add this notification to status channel that my all clients can see. the purpose of this question is to hide the service url so it can be private so i can release the notification channel to everyone so i cannot worry anymore that my client will see the IP's and link in the notification.

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.11

💻 Operating System and Arch

Ubuntu

🌐 Browser

Google Chrime

🐋 Docker Version

No response

🟩 NodeJS Version

No response

@snaponeph snaponeph added the help label Jan 12, 2024
@CommanderStorm CommanderStorm added area:monitor Everything related to monitors area:notifications Everything related to notifications labels Jan 12, 2024
@CommanderStorm
Copy link
Collaborator

@CommanderStorm CommanderStorm closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
@chakflying
Copy link
Collaborator

chakflying commented Jan 12, 2024

Notification templating is difficult and unlikely to be implemented soon. However, what you needed can be done very simply by adding 1 line change:

server/notification-providers/discord.js#48

             address = null;

You can also customize the content sent according to your needs. Change will take effect on server restart.

@CommanderStorm
Copy link
Collaborator

@chakflying You forgot to mention that this only works if using a persistent fs like the node/pm2 installation path.
If using the docker installation path, a custom image with this change would need to be build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:monitor Everything related to monitors area:notifications Everything related to notifications help
Projects
None yet
Development

No branches or pull requests

3 participants