jackbrycesmith / laravel-caprover-template

Template to deploy a Laravel app in docker for CapRover
MIT License
127 stars 44 forks source link

Passport oauth client, where should I initialize keys? #8

Closed darr1s closed 4 years ago

darr1s commented 4 years ago

Hi, thanks for creating the repo its awesome.

I'd like to know whats ur approach when it comes to passport:install / passport:keys, assuming we want to Laravel to be stateless.

jackbrycesmith commented 4 years ago

Hi there 👋,

I would generate the keys on your local machine, then load them as environment variables as mentioned here: https://laravel.com/docs/7.x/passport#deploying-passport

image

Then make sure to add PASSPORT_PRIVATE_KEY & PASSPORT_PUBLIC_KEY to the Dockerfile, and you should be good to go!