apprise-api icon indicating copy to clipboard operation
apprise-api copied to clipboard

Trying to set up API in Photon

Open mattpackwood opened this issue 1 year ago • 4 comments

: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

mattpackwood avatar Jun 08 '24 14:06 mattpackwood

See Here

caronc avatar Jun 08 '24 17:06 caronc

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 ]# 

mattpackwood avatar Jun 12 '24 22:06 mattpackwood

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 avatar Jun 13 '24 10:06 caronc

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.

caronc avatar Jun 30 '24 02:06 caronc

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 avatar Jul 01 '24 16:07 mattpackwood

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

mattpackwood avatar Jul 01 '24 21:07 mattpackwood

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

caronc avatar Jul 02 '24 03:07 caronc

Got it, time to experiment!

mattpackwood avatar Jul 03 '24 17:07 mattpackwood