Skip to content

Commit

Permalink
Add maximum content length configuration for xloader in environment f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
mjanez committed Dec 5, 2024
1 parent 97c320f commit 8c846a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions playbook/inventories/development/host_vars/development_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ ckanext__spatial__common_map__attribution: "Map tiles by <a href=\"http://openst
ckanext__xloader__jobs_db__uri: "postgresql://{{ ckan_database.ckan_db_user }}:{{ ckan_database.ckan_db_password }}@{{ ckan_database.postgres_host }}:{{ ckan_database.postgres_port }}/{{ ckan_database.ckan_db }}"
#### Enable or disable SSL certificate verification. Setting verify to False should only be enabled during local development or testing.
ckanext__xloader__ssl_verify: True
#### Maximum content length for uploaded files (in bytes). Default 1000000000 (1GB)
ckanext__xloader__max_content_length: 1000000000

#### ckanext-pages
ckanext__pages__organization: True
Expand Down
2 changes: 2 additions & 0 deletions playbook/inventories/production/host_vars/production_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ ckanext__spatial__common_map__attribution: "Map tiles by <a href=\"http://openst
ckanext__xloader__jobs_db__uri: "postgresql://{{ ckan_database.ckan_db_user }}:{{ ckan_database.ckan_db_password }}@{{ ckan_database.postgres_host }}:{{ ckan_database.postgres_port }}/{{ ckan_database.ckan_db }}"
#### Enable or disable SSL certificate verification. Setting verify to False should only be enabled during local development or testing.
ckanext__xloader__ssl_verify: True
#### Maximum content length for uploaded files (in bytes). Default 1000000000 (1GB)
ckanext__xloader__max_content_length: 1000000000

#### ckanext-pages
ckanext__pages__organization: True
Expand Down
2 changes: 2 additions & 0 deletions playbook/inventories/staging/host_vars/staging_01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ ckanext__spatial__common_map__attribution: "Map tiles by <a href=\"http://openst
ckanext__xloader__jobs_db__uri: "postgresql://{{ ckan_database.ckan_db_user }}:{{ ckan_database.ckan_db_password }}@{{ ckan_database.postgres_host }}:{{ ckan_database.postgres_port }}/{{ ckan_database.ckan_db }}"
#### Enable or disable SSL certificate verification. Setting verify to False should only be enabled during local development or testing.
ckanext__xloader__ssl_verify: True
#### Maximum content length for uploaded files (in bytes). Default 1000000000 (1GB)
ckanext__xloader__max_content_length: 1000000000

#### ckanext-pages
ckanext__pages__organization: True
Expand Down
3 changes: 2 additions & 1 deletion playbook/roles/ckan/templates/ckan.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ ckanext.geoview.geojson.max_file_size = {{ ckanext__geoview__geojson__max_file_s

### ckanext-xloader
ckanext.xloader.api_token = xloader_api_token
ckanext.xloader.jobs_db.uri={{ ckanext__xloader__jobs_db__uri }}
ckanext.xloader.jobs_db.uri = {{ ckanext__xloader__jobs_db__uri }}
ckanext.xloader.ssl_verify = {{ ckanext__xloader__ssl_verify }}
ckanext.xloader.max_content_length = {{ ckanext__xloader__max_content_length }}

### ckanext-pages
ckan.pages.allow_html = False
Expand Down

0 comments on commit 8c846a5

Please sign in to comment.