/strapi-plesk

Primary LanguageJavaScript

Strapi Plesk Application

Demo project to this blog post to run a strapi application on a plesk vserver as nodejs application.

quickstart sqlite

  • clone repository
  • copy .env.example to .env
  • add DATABASE_CONNECTION_NAME=sqlite
  • add JWT secrets by running this node command: node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"

quickstart mysql

  • clone repository
  • copy .env.example to .env
  • add DATABASE_CONNECTION_NAME=mysql
  • provide values for other DATABASE_* fields (NAME, USERNAME, PASSWORD, HOST, PORT)
  • add JWT secrets by running this node command: node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"

quickstart jwt secrets

Provide two different jwt secret values in your .env file.

Create JWT_SECRET and ADMIN_JWT_SECRET value with this command:

node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"