Replies: 2 comments 1 reply
-
Hi @CyberZeus! I'm Dosu and I’m helping the Stirling-PDF team. The most common reason the login screen doesn't appear is that the Docker image stirlingtools/stirling-pdf:latest does not include the security features needed for login. You need to use the stirlingtools/stirling-pdf:latest-fat image instead—this version includes the necessary security components for authentication to work. Update your Docker Compose file to use latest-fat, then restart the container. Your environment variables look correct, and DISABLE_ADDITIONAL_FEATURES is set to false, which is required for login to be enabled. If you still don't see the login screen after switching images, check the container logs for errors and make sure the security JAR file is being downloaded successfully. More details are in the docs and related threads: source, docs. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Why is there no mention of that requirement on the https://docs.stirlingpdf.com/Advanced%20Configuration/System%20and%20Security page that is supposed to have instructions on enabling logins? I just spent more than an hour trying every combination of suggestions and configuration settings and couldn't figure out why it wasn't working until I happened to randomly find this at the top of the discussions page. I should also display a warning banner or message of some kind when you go to the app with login enabled in the settings without using the necessary fat version instead of the default one. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm running Stirling PDF in a docker container, using compose. Here it my config:
stirlingpdf:
container_name: stirlingpdf
user: 1000:1000
image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest
ports:
- 8081:8080
volumes:
- /home/davide/stirlingpdf/trainingData:/usr/share/tessdata # Required for extra OCR languages
- /home/davide/stirlingpdf/extraConfigs:/configs
- /home/davide/stirlingpdf/customFiles:/customFiles/
- /home/davide/stirlingpdf/logs:/logs/
- /home/davide/stirlingpdf/pipeline:/pipeline/
environment:
- DOCKER_ENABLE_SECURITY=true
- LANGS=it_IT
- DISABLE_ADDITIONAL_FEATURES=false
- SECURITY_ENABLELOGIN=true
- SECURITY_LOGINMETHOD=normal
- SECURITY_INITIALLOGIN_USERNAME=admin
- SECURITY_INITIALLOGIN_PASSWORD=stirling
When I navigate to port 8081, as configured, no login screen is shown, it goes directly to the main page.
What am I missing?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions