linagora / linshare-docker

Other
53 stars 16 forks source link

JWT key not present #18

Open xlyric opened 2 years ago

xlyric commented 2 years ago

hi,

Since the version 5.1 of the docker file, the jwt is not present in docker image

xlyric commented 2 years ago

workaround :

docker cp linshare_backend:/etc/linshare . cd linshare nano linshare.properties uncomment :

jwt.global.key.private.path=/etc/linshare/id_rsa
jwt.global.key.public.path=/etc/linshare/id_rsa.pub

openssl genrsa -out id_rsa 2048 openssl rsa -in id_rsa -out id_pub -pubout -outform PEM

docker-compose.yml #L57 add - ./tomcat/linshare:/etc/linshare

@fmartin-linagora