Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
MIT License
41.95k stars 3.32k forks source link

0.22.22 no login page #909

Closed caoqiming closed 6 months ago

caoqiming commented 6 months ago

I don't know why there is no login page. I am using docker, DOCKER_ENABLE_SECURITY and SECURITY_ENABLE_LOGIN are set to true. I am sure that it is not a light version. Here are some logs.

2024-03-13 11:16:38,579 INFO s.s.S.SPdfApplication [main] Starting SPdfApplication v0.22.2 using Java 17.0.10 with PID 7 (/app.jar started by stirlingpdfuser in /)
2024-03-13 11:16:38,582 INFO s.s.S.SPdfApplication [main] No active profile set, falling back to 1 default profile: "default"
2024-03-13 11:16:40,074 INFO o.s.b.w.e.t.TomcatWebServer [main] Tomcat initialized with port 8080 (http)
2024-03-13 11:16:40,083 INFO o.a.c.h.Http11NioProtocol [main] Initializing ProtocolHandler ["http-nio-8080"]
2024-03-13 11:16:40,084 INFO o.a.c.c.StandardService [main] Starting service [Tomcat]
2024-03-13 11:16:40,085 INFO o.a.c.c.StandardEngine [main] Starting Servlet engine: [Apache Tomcat/10.1.18]
2024-03-13 11:16:40,117 INFO o.a.c.c.C.[.[.[/] [main] Initializing Spring embedded WebApplicationContext
2024-03-13 11:16:40,118 INFO o.s.b.w.s.c.ServletWebServerApplicationContext [main] Root WebApplicationContext: initialization completed in 1451 ms
2024-03-13 11:16:40,262 INFO s.s.S.SPdfApplication [main] Running configs ApplicationProperties [security=Security [enableLogin=true, initialLogin=null,  csrfDisabled=true], system=System [defaultLocale=en-US, googlevisibility=false, rootURIPath=null, customStaticFilePath=/customFiles/static/, maxFileSize=null, enableAlphaFunctionality=false], ui=UserInterface [appName=pdf editor, homeDescription=this is for the little genius, appNameNavbar=null], endpoints=Endpoints [toRemove=[], groupsToRemove=[]], metrics=Metrics [enabled=false], automaticallyGenerated=null, autoPipeline=null]
Frooodle commented 6 months ago

Can i have your docker (compose?) settings too?

caoqiming commented 6 months ago
docker run -d \
  -p 8080:8080 \
  -v ~/.pdf/tessdata:/usr/share/tessdata \
  -v ~/.pdf/configs:/configs \
  -e INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false \
  -e APP_LOCALE=zh_CN \
  -e DOCKER_ENABLE_SECURITY=true \
  -e SECURITY_ENABLE_LOGIN=true \
  frooodle/s-pdf:latest
caoqiming commented 6 months ago

Sorry, this is my mistake. Because downloading app-security.jar was too slow, I downloaded and imported it manually. But I forgot to soft-link app.jar to app-security.jar. The problem is now solved.