Skip to content

Commit

Permalink
update configuration to YAML (#937)
Browse files Browse the repository at this point in the history
* update configuration to YAML (#797)
* pass OARec tests
* STAC updates
* fix refs
* pass CITE tests
* pass APISO tests
* pass Atom tests
* pass APISO INSPIRE tests
* pass idswithpaths tests
* pass default tests
* pass dif tests
* pass duplicatefileid tests
* pass ebrim tests
* pass fgdc tests
* pass gm03 tests
* update harvesting tests
* pass manager tests
* pass oaipmh tests
* pass opensearcheo tests
* pass repofilter tests
* pass sru tests
* update utf-8 tests
* updates
* fix
* Fixed failing tests
* update docker configs
* docs sweep
* add migration script
* add yaml dump to file
* Fix typo in helm configmap
* Update k8s configmap
* Update default config file
* Update config files
* update copyright year

---------

Co-authored-by: Ricardo Garcia Silva <[email protected]>
Co-authored-by: Angelos Tzotsos <[email protected]>
  • Loading branch information
3 people authored Jan 6, 2024
1 parent 7e568cf commit 1702f77
Show file tree
Hide file tree
Showing 215 changed files with 4,204 additions and 3,722 deletions.
101 changes: 0 additions & 101 deletions default-sample.cfg

This file was deleted.

125 changes: 125 additions & 0 deletions default-sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# =================================================================
#
# Authors: Tom Kralidis <[email protected]>
# Angelos Tzotsos <[email protected]>
#
# Copyright (c) 2024 Tom Kralidis
# Copyright (c) 2024 Angelos Tzotsos
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# =================================================================

server:
url: http://localhost/pycsw/csw.py
mimetype: application/xml; charset=UTF-8
encoding: UTF-8
language: en-US
maxrecords: 10
#ogc_schemas_location: http://foo
#pretty_print: true
gzip_compresslevel: 9
#domainquerytype: range
#domaincounts: true
#spatial_ranking: true
#workers=2

logging:
level: ERROR
#logfile: /tmp/pycsw.log

profiles:
- apiso

federatedcatalogues:
- http://catalog.data.gov/csw

manager:
transactions: false
allowed_ips:
- 127.0.0.1
csw_harvest_pagesize: 10

metadata:
identification:
title: pycsw Geospatial Catalogue
description: pycsw is an OARec and OGC CSW server implementation written in Python
keywords:
- catalogue
- discovery
- metadata
keywords_type: theme
fees: None
accessconstraints: None
terms_of_service: https://creativecommons.org/licenses/by/4.0
url: https://example.org
license:
name: CC-BY 4.0 license
url: https://creativecommons.org/licenses/by/4.0
provider:
name: Organization Name
url: https://pycsw.org
contact:
name: Lastname, Firstname
position: Position Title
address: Mailing Address
city: City
stateorprovince: Administrative Area
postalcode: Zip or Postal Code
country: Country
phone: +xx-xxx-xxx-xxxx
fax: +xx-xxx-xxx-xxxx
email: [email protected]
url: Contact URL
hours: Mo-Fr 08:00-17:00
instructions: During hours of service. Off on weekends.
role: pointOfContact
inspire:
enabled: true
languages_supported:
- eng
- gre
default_language: eng
date: YYYY-MM-DD
gemet_keywords:
- Utility and governmental services
conformity_service: notEvaluated
contact_name: Organization Name
contact_email: Email Address
temp_extent:
begin: YYYY-MM-DD
end: YYYY-MM-DD

repository:
# sqlite
database: sqlite:////var/www/pycsw/tests/functionaltests/suites/cite/data/cite.db
# postgres
#database: postgresql://username:password@localhost/pycsw
# mysql
#database: mysql://username:password@localhost/pycsw?charset=utf8
#mappings: path/to/mappings.py
table: records
#filter: type = 'http://purl.org/dc/dcmitype/Dataset'
#max_retries: 5
facets:
- type
- title
2 changes: 1 addition & 1 deletion docker/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
ports:
- 8000:8000
volumes:
- ./pycsw.cfg:/etc/pycsw/pycsw.cfg
- ./pycsw.yml:/etc/pycsw/pycsw.yml


volumes:
Expand Down
102 changes: 0 additions & 102 deletions docker/compose/pycsw.cfg

This file was deleted.

Loading

0 comments on commit 1702f77

Please sign in to comment.