Skip to content

Commit

Permalink
Merge pull request #6256 from dimagi/sk/formplayer-custom-props
Browse files Browse the repository at this point in the history
add custom properties to fomplayer config for DB connection pool
  • Loading branch information
snopoke authored Apr 10, 2024
2 parents 4afa0a6 + f9ecbca commit a28c95f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions environments/production/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ formplayer_forward_ip_proxy: true
formplayer_detailed_tags:
- form_name
- module_name
formplayer_custom_properties:
spring.datasource.hikari.maximum-pool-size: 20
spring.datasource.hikari.minimum-idle: 5

KSPLICE_ACTIVE: yes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ server.forward-headers-strategy=NATIVE
{% if formplayer_detailed_tags is defined %}
detailed_tagging.tag_names={{ formplayer_detailed_tags|join(',') }}
{% endif %}

# Per-environment custom properties
{% for key, value in formplayer_custom_properties.items() %}
{{ key }}={{ value }}
{% endfor %}
```
4 changes: 4 additions & 0 deletions src/commcare_cloud/ansible/roles/formplayer/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ formplayer_release_name: '{{ release_name }}-{{ env_monitoring_id }}'
# Instructs Spring Boot to process X-FORWARDED-FOR headers. Should be set if behind a
# trusted load balancer which forwards the original IP in headers.
formplayer_forward_ip_proxy: false

# Mapping to define custom properties to be set in the formplayer application.properties file
# Override this in your environment file to set custom properties
formplayer_custom_properties: {}

0 comments on commit a28c95f

Please sign in to comment.