Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Notifications from inside of Docker container

Featured Replies

In my Docker container I would like to send notifications using built-in webGui notification system. To do this I'm making a POST request to "http://tower/webGui/include/Notify.php", but the problem is I need to include the "csrf_token" variable with every request. Is there a way to retrieve that variable from inside of the container so it doesn't need to be manually entered using env variables?

1 hour ago, Krzaku said:

In my Docker container I would like to send notifications using built-in webGui notification system. To do this I'm making a POST request to "http://tower/webGui/include/Notify.php", but the problem is I need to include the "csrf_token" variable with every request. Is there a way to retrieve that variable from inside of the container so it doesn't need to be manually entered using env variables?

You're going to be better off mapping the folder /usr/local/emhttp/plugins/dynamix/scripts inside the container, and then calling the notify script manually

 

Your container won't be able to determine the csrf_token, and the value changes with every reboot, so an environment variable won't work either.

  • Author

Mapping this single folder would not work, would it? It requires some other scripts and configs, and also requires a php interpreter to be installed in the container.

You can get the csrf from the var.ini file on tapatalk at the moment so can't give you the exact folder though

Sent from my SM-T560NU using Tapatalk

  • Author

I decided to not include notifications in my script as I don't think it's a good idea to pass the root password to Docker containers via env variables. Thanks for your help anyway.

Edited by Krzaku

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.