caronc / apprise-api

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

Is there a way to disable the GUI and add a password for the API service #70

Closed taicaile closed 1 year ago

taicaile commented 2 years ago

:question: Question

Hello,

May I know if the default WEB page can be disabled? just leave the API service only.

And if there is a method to config a password for the API service?

Thanks.

caronc commented 2 years ago

May I know if the default WEB page can be disabled? just leave the API service only.

Yes, this is done by setting up your configuration the way you want, and then in the settings.py set APPRISE_CONFIG_LOCK environment variable to yes.

And if there is a method to config a password for the API service?

The bet way to do this is to park an NginX server in-front and set it up as a reverse proxy. It's not too difficult to do. From here you can configure an http user/pass that forces you to authenticate before accessing the Apprise Server.

All of your apprise calls that used to reference apprise://hostname:8000 just change to apprise://user:pass@hostname

caronc commented 1 year ago

Closing this issue off due to lack of response.