Hi, Yes, I did. Although I found that the GeoServerEnvironment class is in the platform project and Alessio suggested that the extension is not necessary: http://osgeo-org.1560.x6.nabble.com/spring-PropertyPlaceholderConfigurer-for-data-directory-files-tp5313190p5313197.html
I'll try to do it again with a fresh installation; maybe there's something messed up with my current setup. Cheers. El vie., 2 nov. 2018 a las 17:58, Nuno Oliveira (< [email protected]>) escribió: > Hi, > > your configuration look good, did you install the Backup & Restore module ? > > https://docs.geoserver.org/latest/en/user/community/backuprestore/installation.html > > Regards, > > Nuno Oliveira > > On Fri, 2018-11-02 at 14:17 +0100, Víctor González wrote: > > Hi all, > > I was trying to use the technique explained here: > > > https://docs.geoserver.org/latest/en/user/community/backuprestore/configtemplate.html > > > but I cannot make it work. I set the host of a PG datastore to > ${mypghost}, wrote a <data_dir>/geoserver-environment.properties with > mypghost=localhost and then restarted with -DALLOW_ENV_PARAMETRIZATION=true > but it doesn't connect (it does when setting "localhost" directly). > > Then I tried to remove the geoserver-environment.properties file and set > the logging level to verbose but I don't see this message in the logs > anywhere: > > > https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L104 > > https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L120 > > It seems like the bean is never initialized. Do I need to configure > something else to enable this feature? > > Thanks in advance. > > -- > Víctor González > http://geomati.co > > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to this > list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > [email protected]https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- > Regards, > Nuno Oliveira > == > GeoServer Professional Services from the > experts! > Visit http://goo.gl/it488V for more information. > == > > Nuno Miguel Carvalho Oliveira > @nmcoliveira > Software Engineer > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > Italy > phone: +39 0584 962313 > fax: +39 0584 1660272 > http://www.geo-solutions.ithttp://twitter.com/geosolutions_it > > ------------------------------------------------------- > > Con riferimento alla normativa sul trattamento dei dati > personali (Reg. UE 2016/679 - Regolamento generale sulla > protezione dei dati “GDPR”), si precisa che ogni > circostanza inerente alla presente email (il suo contenuto, > gli eventuali allegati, etc.) è un dato la cui conoscenza > è riservata al/i solo/i destinatario/i indicati dallo > scrivente. Se il messaggio Le è giunto per errore, è > tenuta/o a cancellarlo, ogni altra operazione è illecita. > Le sarei comunque grato se potesse darmene notizia. > > This email is intended only for the person or entity to > which it is addressed and may contain information that > is privileged, confidential or otherwise protected from > disclosure. We remind that - as provided by European > Regulation 2016/679 “GDPR” - copying, dissemination or > use of this e-mail or the information herein by anyone > other than the intended recipient is prohibited. If you > have received this email by mistake, please notify > us immediately by telephone or e-mail. > > -- Víctor González http://geomati.co
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
