Replies: 3 comments 2 replies
-
https://docs.stirlingpdf.com/Advanced%20Configuration/System%20and%20Security Docker enable security flag must be set in the docker container |
Beta Was this translation helpful? Give feedback.
-
### Below are the only log that i found in the docker,/root/logs/info.log |
Beta Was this translation helpful? Give feedback.
-
在使用登录模式进行部署时,Stirling-PDF会下载下面这个主程序,由于墙的存在,很可能会下载失败 https://github.com/Stirling-Tools/Stirling-PDF/releases/download/v${version}/Stirling-PDF-with-login.jar 可以根据部署的版本,自行使用镜像进行下载。 具体的,先确认Stirling-PDF的容器ID,进入到容器中,然后自行下载 # 确认Stirling-PDF的ID
docker ps
# 进入到容器中
docker exec -it <容器ID> /bin/bash
cd /
# 自行下载
wget https://github.com/Stirling-Tools/Stirling-PDF/releases/download/v${version}/Stirling-PDF-with-login.jar -O app-security.jar
# 将这个文件进行软链
rm app.jar
ln -s app-security.jar app.jar
exit 建议重启项目 docker compose restart |
Beta Was this translation helpful? Give feedback.
-
I have set the below config ,and use cmd to run in linux server, when i access to portal use 8080 it no need to login...
settings.yml
security:
enableLogin: true # set to 'true' to enable login
csrfDisabled: false # set to 'true' to disable CSRF protection (not recommended for production)
loginAttemptCount: 5 # lock user account after 5 tries; when using e.g. Fail2Ban you can deactivate the function with -1
loginResetTimeMinutes: 120 # lock account for 2 hours after x attempts
loginMethod: normal # Accepts values like 'all' and 'normal'(only Login with Username/Password), 'oauth2'(only Login with OAuth2) or 'saml2'(only Login with SAML2)
initialLogin:
username: 'root' # initial username for the first login
password: 'root' # initial password for the first login
docker run
docker run -d
--name stirling-pdf
-p 8080:8080
-v "./StirlingPDF/trainingData:/usr/share/tessdata"
-v "./StirlingPDF/extraConfigs:/configs"
-v "./StirlingPDF/customFiles:/customFiles/"
-v "./StirlingPDF/logs:/logs/"
-v "./StirlingPDF/pipeline:/pipeline/"
-e LANGS=zh_CN
stirlingtools/stirling-pdf:latest
Beta Was this translation helpful? Give feedback.
All reactions