Hi,

App-Schema supports parameterization in mappings files out of the box:
https://docs.geoserver.org/stable/en/user/data/app-schema/property-interpolation.html

You can also have parameterization at a GeoServer more generic level,
although the environment parameterization may not be supported for some
extensions:
https://docs.geoserver.org/latest/en/user/datadirectory/index.html#datadir

Regards,

Nuno Oliveira

On Wed, Nov 28, 2018 at 3:05 PM geseus <ges...@email.com> wrote:

> Hi, is it possible to parametrize values for PostGIS datastore in
> datastore.xml file (like for eg. app-schemas)?
>
> I'm using PostGIS as a database, and would like to have datastore.xml like:
>
> <dataStore>
>   <id>test_datastore</id>
>   <name>dbStore</name>
>   <description>${test.datasource.description}</description>
>   <type>PostGIS</type>
>   <enabled>true</enabled>
>   <workspace>
>     <id>test_workspace</id>
>   </workspace>
>   <connectionParameters>
>         <entry key="host">${test.database.host}</entry>
>         <entry key="port">${test.database.port}</entry>
>         <entry key="database">${test.database.name}</entry>
>     <entry key="schema">${test.database.schema}</entry>
>         <entry key="user">${test.database.user}</entry>
>         <entry key="passwd">${test.database.password}</entry>
>     <entry key="Estimated extends">false</entry>
>     <entry key="encode functions">false</entry>
>     <entry key="Expose primary keys">false</entry>
>     <entry key="validate connections">false</entry>
>     <entry key="Support on the fly geometry simplification">false</entry>
>     <entry key="create database">false</entry>
>     <entry key="preparedStatements">false</entry>
>     <entry key="Loose bbox">false</entry>
>     <entry key="Test while idle">false</entry>
>   </connectionParameters>
>   <__default>false</__default>
> </dataStore>
>
>
> .. but I do not know where/how I should place *.properties file; or how to
> set up configuration.
>
> Thanks a lot,
> T.
>
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
>
> _______________________________________________
> 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
>
>
> Geoserver-users@lists.sourceforge.net
> 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.it
http://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.
_______________________________________________
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


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to