caronc / apprise-api

A lightweight REST framework that wraps the Apprise Notification Library
https://hub.docker.com/r/caronc/apprise
MIT License
575 stars 49 forks source link

Trying to set up API in Photon #192

Closed mattpackwood closed 4 days ago

mattpackwood commented 4 weeks ago

:question: Question

I think I may have missed step, I am unable to save my YAML...

Screenshot 2024-06-08 at 10 38 04 AM Screenshot 2024-06-08 at 10 38 23 AM
caronc commented 4 weeks ago

See Here

mattpackwood commented 3 weeks ago

When I go to:

Screenshot 2024-06-12 at 6 44 48 PM

I am getting:

Screenshot 2024-06-12 at 6 44 34 PM

It is very possible the issue is that I am running the container under Photon OS.

I have a file:

# Grant full permission to the local directory you're saving your
# Apprise configuration to:
chmod 777 /var/lib/apprise/config

Stored under:

root@photon-machine [ /var/lib/apprise/config ]# pwd
/var/lib/apprise/config
root@photon-machine [ /var/lib/apprise/config ]# ls
apprise_config
root@photon-machine [ /var/lib/apprise/config ]# 
caronc commented 3 weeks ago

Are you sure it's not writing to /config if you're using my docker container? You're having a similar problem to #195. Perhaps there is something else going on in the source code. I may have to have a deeper look this weekend

caronc commented 1 week ago

Have a look at the latest source code. I greatly improved the permission element of the API by introducting PUID and PGID variables where you can set the permission the tool should run as.

mattpackwood commented 6 days ago

Good news is that a: sudo chmod --recursive 777 attach/ config/ plugin/ Fixed the permission issue, now I need to tighten up the security a bit, my config file is currently:

# Grant full permission to the local directory you're saving your
# Apprise configuration to:
chmod 777 /var/lib/apprise/config

I can't find the page that shows the "more secure version of this" I can't seem to find that, I am sure it was in this repository....

mattpackwood commented 5 days ago

Bizarrely I can find this in the Spanish but not the English "Read Me". https://github.com/caronc/apprise-api/blob/e3352206f3b53f5ffc722310619b9cfe520b2c7e/README-es.md?plain=1#L86

caronc commented 5 days ago

Link: https://github.com/caronc/apprise-api/blob/e3352206f3b53f5ffc722310619b9cfe520b2c7e/README.md

mattpackwood commented 4 days ago

Got it, time to experiment!