Closed zahedhelmand closed 2 months ago
Hi @zahedhelmand, thanks for opening the issue!
I think the problem reside in the absence of the CERTIFICATE_PATH
property.
Could you please add CERTIFICATE_PATH: /certificates/
to the list of environment:
both in the plantit-be:
and plantit-fe:
?
So something like:
...
plantit-fe:
environment:
<<: *default-tz-puid-pgid
PORT: 3000
API_URL: https://plantit.${DOMAINNAME}/api
WAIT_TIMEOUT: 10000 # backend response timeout in ms
PAGE_SIZE: 25
BROWSER: none
CERTIFICATE_PATH: /certificates/
...
plantit-be:
environment:
<<: *default-tz-puid-pgid
MYSQL_HOST: plantit-db
MYSQL_PORT: 3306
MYSQL_DATABASE: '${PLANTIT_DB_NAME}'
MYSQL_USERNAME: '${PLANTIT_DB_USER}'
MYSQL_PSW: '${PLANTIT_DB_ROOT}'
MYSQL_ROOT_PASSWORD: '${PLANTIT_DB_ROOT}'
CACHE_HOST: plantit-cache
CACHE_TTL: 86400
CACHE_PORT: 6379
API_PORT: 8080
JWT_SECRET: <redacted>
JWT_EXP: 1
USERS_LIMIT: -1 # less then 0 means no limit
UPLOAD_DIR: /upload-dir
TREFLE_KEY: <redacted>
# ALLOWED_ORIGINS: http://${PLANTIT_FE_IP}:3000
ALLOWED_ORIGINS: https://plantit.${DOMAINNAME}:3000
LOG_LEVEL: INFO # DEBUG, INFO, WARN, ERROR
CERTIFICATE_PATH: /certificates/
The example in the documentation was written before adding the ssl
feature, so if this resolve the issue I will update the documentation
Thank you! It worked! I almost got crazy trying to fix it. :) I got the config from here, maybe you can add the enviroment to the yml here. https://docs.plant-it.org/installation/configurations/#example-of-traefik-deployment
Avoid duplicated bug reports
Description
Hey, i somehow started plant-it and could open the page and everything, then i found the traefik-config so i wanted to make a clean start so i deleted all files (including the certificates folder). But after i copied the traefik config and tried to run plant-it, the frontend got this error
Certificates not found. Sleeping for 5 seconds...
How do i get the certificates again?Expected behaviour
No response
Steps to reproduce