play 2.5.x를 배포하니. 아래와 같은 문구가 뜬다.



[error] p.a.l.c.CryptoConfigParser - The application secret has not been set, and we are in prod mode. Your application is not secure.

[error] p.a.l.c.CryptoConfigParser - To set the application secret, please read http://playframework.com/documentation/latest/ApplicationSecret




참조


https://www.playframework.com/documentation/2.5.x/ApplicationSecret#Production-configuration-file



해결 방법


먼저 secret 값을 얻는다.


% /usr/local/activator/bin/activator

[guid-migration] $

[guid-migration] $ playGenerateSecret

[info] Generated new secret: =H7u9z7gzqk?20_U[DdL=l85uvhnoidD8jGd372ONJc_]I2TVtp:3z;O[VQSSI8`

[success] Total time: 0 s, completed 2017. 4. 17 오후 9:48:56


해당 secret 값을 conf/application.conf에 저장한다.


play.crypto.secret="changeme"

play.crypto.secret="=H7u9z7gzqk?20_U[DdL=l85uvhnoidD8jGd372ONJc_]I2TVtp:3z;O[VQSSI8`"



더 이상 에러는 발생하지 않는다. 



Posted by '김용환'
,