Config file path

74 views
Skip to first unread message

MonTarO

unread,
Aug 24, 2011, 6:02:19 AM8/24/11
to play-fr...@googlegroups.com
If I had to move the configuration to some more secure place on the file system other than the default path, Is there a way to instruct PLAY where is the conf file to override the default expected path ?

Thanks,

Neoh59

unread,
Aug 24, 2011, 4:40:51 PM8/24/11
to play-fr...@googlegroups.com
Hi,

I posted a similar question (not answered) : https://groups.google.com/d/topic/play-framework/Ud1fC4K-rN0/discussion

For me the best way would be a feature like "@include" but with a path which have not to be in the application's conf folder.
If you want, your application.conf file could be just one line : @include-absolute.conf=/path/to/conf/external.conf
( it would be like changing the default path to the application's conf file )
I think it's the best way to do it because it's not very different from the current @include feature (and perhaps it doesn't need a large effort to be implemented)

But no solution for the moment IMHO (I used a very ugly solution : reading the file in Application controller, ... and I have several problems sometimes with my solution, so I can't advise it for you)

I hope someone can help on this


MonTarO

unread,
Sep 19, 2011, 7:17:59 AM9/19/11
to play-fr...@googlegroups.com
Thanks Neoh59,

But including the path of another configuration file in the same directory or another, still did not solve the security issue.
The deployment issue I face requires namespace binding of the application.conf to a different path using WebSphere, 
any advices about how to implement this? 

Regards,

Neoh59

unread,
Mar 10, 2012, 1:20:09 PM3/10/12
to play-fr...@googlegroups.com

If it can help you, I created the #1461 ticket and submit a pull request.

MonTarO

unread,
Mar 12, 2012, 5:56:25 AM3/12/12
to play-fr...@googlegroups.com
THANKS
Reply all
Reply to author
Forward
0 new messages