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

Get notified of a new upload #17

Open
luckman212 opened this issue Dec 18, 2021 · 1 comment
Open

Get notified of a new upload #17

luckman212 opened this issue Dec 18, 2021 · 1 comment

Comments

@luckman212
Copy link

luckman212 commented Dec 18, 2021

I use Pushover for notifications.

Anyone know if it would be possible or can point me in the right direction of where to add an HTTP POST to the Pushover API upon successful upload?

Somewhere in upload.go right before this line maybe?

http.Redirect(w, r, Config.sitePath+upload.Filename, 303)

@tuxx
Copy link

tuxx commented Aug 16, 2024

I made some very limited pushover support when a file gets uploaded.

Things that could be improved:

  • Better message for pushover, including the IP that uploaded it, expiration date, etc.
  • More notifications, for example when a file gets deleted?
  • More config options when more features get added so you can for instance disable push notifications when files get deleted
  • Other push service support?

Anyway, hope this helps, i thought it was a good idea so i implemented it 👍 .

Especially like this feature since my instance lately has been spammed with virus .zip's and weird files from all over the world and i would like to keep it open.

To use this feature:

  1. Create an application in pushover, copy the user key and api token
  2. add the CLI parameters -pushover-key and -pushover-token when running linx-server.

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