EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit c192a77b authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Allowing local and S3 caches

parent c9959c42
No related branches found
No related tags found
1 merge request!55Production release 1.2.0
......@@ -63,9 +63,29 @@
<container>{{ .Values.config.objectStorage.cache.container }}</container>
<key>{{ .Values.config.objectStorage.key | default "/{tileset}/{grid}/{dim}/{z}/{x}/{y}.{ext}" }}</key>
</cache>
{{- else if eq .Values.config.objectStorage.cache.type "S3"}} # TODO
{{- else if eq .Values.config.objectStorage.cache.type "S3" }}
<cache name="cache" type="S3">
<url>{{ endpoint_url }}/{tileset}/{grid}/{z}/{x}/{y}/{ext}</url>
<!-- <headers>
<Host>foo.s3.amazonaws.com</Host>
</headers> -->
<id>{{ .Values.config.objectStorage.cache.access_key_id }}</id>
<secret>{{ .Values.config.objectStorage.cache.secret_access_key }}</secret>
{{- if .Values.config.objectStorage.cache.region }}
<region>{{ .Values.config.objectStorage.cache.region }}</region>
{{- end }}
<!-- <operation type="put">
<headers>
<x-amz-storage-class>REDUCED_REDUNDANCY</x-amz-storage-class>
<x-amz-acl>public-read</x-amz-acl>
</headers>
</operation> -->
</cache>
{{- else }}
<!-- no storage configured -->
<!-- no storage configured, using temp one -->
<cache name="cache" type="sqlite3">
<dbfile>/tmp/cache.db</dbfile>
</cache>
{{- end }}
{{- define "mapcache-layerid" -}}{{ .collection_name }}{{ if .level_name }}__{{ .level_name }}{{ end }}{{ if .sub_layer_name }}__{{ .sub_layer_name }}{{ end }}{{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment