1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-07-01 17:42:53 +00:00

Added additional steps to configure mailer in docker container

shayaknyc 2022-06-14 11:57:56 -04:00
parent 235e96455d
commit 40e6b17ea1

@ -79,3 +79,15 @@ Go to the Google Developer Console and create a new app. https://console.develop
## Allowed domains for registering
If public registration is enabled you can limit the domains of e-mail addresses which are allowed for registering. Per default all domains (\*.\*) are allowed. You can use "\*" for limiting to any number of characters and "?" for limiting to exact one character. If you want to limit the domains, please make sure to delete/edit the "\*.\*" entry. Entries can be deleted by clicking on the trashcan symbol and edited by clicking on the entry.
## Extra steps for Docker Container
1. Enter shell of the docker container
2. Inside docker app: get PID of current calibre app: `ps -C "python3 /app/calibre-web/cps.py" -o pid=`
3. Run the following command to kill the current calibre-web and restart it to get realtime output in terminal: `kill [PID FROM STEP 2] && python3 /app/calibre-web/cps.py &`
4. Click on "Setup gmail account as email server" button in Calibre-Web.
5. Copy link in terminal and open in any browser. Follow prompts and Allow access.
6. Copy the link from browser (will fail) and paste in docker container: `curl "LOCALHOST LINK FROM BROWSER"` Keep the double quotes around the link.
7. Exit container shell and restart container, then test email send. Should work.
Src: https://github.com/janeczku/calibre-web/issues/2254#issuecomment-1100838560