Skip to content

Commit

Permalink
[nginx] allow to override nginx timeouts for ogc-api-records
Browse files Browse the repository at this point in the history
  • Loading branch information
landryb committed Feb 6, 2025
1 parent 2dbae05 commit 39617f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/georchestra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
gn_ogc_api_records:
enabled: true
port: 8880
#timeout: 300
url: https://packages.georchestra.org/bot/wars/geonetwork-microservices/gn-cloud-ogc-api-records-service-{{ geonetwork.microservice_version }}.jar
datahub:
enabled: true
Expand Down
4 changes: 4 additions & 0 deletions roles/nginx/templates/vhost.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ server {
{% if gn_ogc_api_records.enabled %}
location /ogc-api-records {
proxy_set_header Host $host;
{% if gn_ogc_api_records.timeout is defined %}
proxy_read_timeout {{ gn_ogc_api_records.timeout }};
proxy_send_timeout {{ gn_ogc_api_records.timeout }};
{% endif %}
proxy_pass http://localhost:{{ gn_ogc_api_records.port }}/ogc-api-records;
}
{% endif %}
Expand Down

0 comments on commit 39617f9

Please sign in to comment.