How do I use SSL (https) with granian (since paperless v2.15.0)? #9781
-
|
I am used to access my server through SSL (https) in my local environment (to get rid of the "not safe" message in the browsers). My server is its own CA (made trustworthy to the local machines) and the www subdomain served by Apache works fine. Now I want to do the same with paperless which uses granian since v2.15.0. I have created a key/cert pair for my subdomain "paperless" and I already tried to install it "the old way" from the cocumentation: save the cert and key as "ssl.cert" and "ssl.key" to paperless' data folder and set PAPERLESS_USE_SSL=true. To be sure, I also tried 1 instead of true and also changed the "http" to "https" in PAPERLESS_URL, which actually does nothing at all. Accessing paperless with http://... continued to work but https://... told me the site can not establish a secure communication. Yes, I have restarted the containers and checked the environment variables to be set as configured. I use the latest paperless 2.15.3 version. So as expected, SSL configuration no longer works as stated in the pre-Granian documentation. I find zero info on how to configure SSL for Granian in paperless. Just the changelog of 2.15.0 which says Granian is "very configurable" and "lets people set an SSL cert path". How do I tell Granian I want SSL connections for paperless and where it has to look for the cert path? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
This isn't a setting, no idea where it came from. Have you tried reading the Granian documentation? It lists all the options: https://github.com/emmett-framework/granian |
Beta Was this translation helpful? Give feedback.
-
|
Had the same issue, finally fixed it by disabling HTTP/2 in granian. I have my own startup-scripts without docker, so I don't now exactly where you would change it in your case, but this works for me: and uh, and almost forgot I have port mapping from 8443 to 443 to allow non-root startup. |
Beta Was this translation helpful? Give feedback.
-
|
This discussion has been automatically closed because it was marked as answered. Please see our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
-
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
Had the same issue, finally fixed it by disabling HTTP/2 in granian. I have my own startup-scripts without docker, so I don't now exactly where you would change it in your case, but this works for me:
and
paperless.confh…