Skip to content

Commit

Permalink
Add SSL unverified mode configuration for pycsw
Browse files Browse the repository at this point in the history
Avoid errors when using autohosted certificate like [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

Not using in production environments
  • Loading branch information
mjanez committed Nov 14, 2024
1 parent c8aa8a8 commit e5ea0e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ pycsw_output_schema: iso19139_inspire
pycsw_cron_days_interval: 2
pycsw_cron_hour_start: 4
pycsw_app_dir: "{{ ckan_src_dir }}/ckan-pycsw"
pycsw_local_ssl_unverified: false
#### pycsw conf
pycsw_identification_title: Sample Geospatial Catalogue
pycsw_identification_abstract: OGC CSW server powered by pycsw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ pycsw_output_schema: iso19139_inspire
pycsw_cron_days_interval: 2
pycsw_cron_hour_start: 4
pycsw_app_dir: "{{ ckan_src_dir }}/ckan-pycsw"
pycsw_local_ssl_unverified: false
#### pycsw conf
pycsw_identification_title: Sample Geospatial Catalogue
pycsw_identification_abstract: OGC CSW server powered by pycsw
Expand Down
1 change: 1 addition & 0 deletions playbook/inventories/staging/host_vars/staging_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ pycsw_output_schema: iso19139_inspire
pycsw_cron_days_interval: 2
pycsw_cron_hour_start: 4
pycsw_app_dir: "{{ ckan_src_dir }}/ckan-pycsw"
pycsw_local_ssl_unverified: false
#### pycsw conf
pycsw_identification_title: Sample Geospatial Catalogue
pycsw_identification_abstract: OGC CSW server powered by pycsw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ environment=
APP_DIR={{ pycsw_app_dir }},
PYCSW_CKAN_SCHEMA={{ pycsw_ckan_schema }},
PYCSW_OUPUT_SCHEMA={{ pycsw_output_schema}},
SSL_UNVERIFIED_MODE={{ pycsw_local_ssl_unverified }},
user={{ ckan_user }}
numprocs=1
stdout_logfile={{ ckan_log_dir }}/ckan_pycsw.log
Expand Down

0 comments on commit e5ea0e1

Please sign in to comment.