Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version: 2.3.0
appVersion: 2.3.0
dependencies:
- name: nginx
version: 2.1.1
version: 2.1.5
repository: oci://acrarolibotnonprod.azurecr.io/helm/common
27 changes: 27 additions & 0 deletions helm/config/downloads-location.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{- $storage := (include "common.storage.merged" .) | fromYaml }}
{{- $serviceUrls := (include "common.serviceUrls.merged" .) | fromYaml }}

{{- if eq (upper $storage.gpkgProvider) "FS" }}
# FS provider
root /usr/share/nginx/html/downloads;
types {}
{{- end }}

{{- if eq (upper $storage.gpkgProvider) "S3" }}
# S3 provider
proxy_pass {{ $serviceUrls.ngnixS3Gateway }};
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

# Timeouts for larger files
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;

# Buffer settings for handling large files
proxy_buffering off;
proxy_max_temp_file_size 0;
{{- end }}
41 changes: 0 additions & 41 deletions helm/config/downloads.conf

This file was deleted.

2 changes: 1 addition & 1 deletion helm/templates/nginx/nginx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ metadata:
environment: {{ .Values.environment }}
release: {{ $releaseName }}
data:
downloads.conf: {{ tpl (.Files.Get "config/downloads.conf") . | quote }}
downloads-location.conf: {{ tpl (.Files.Get "config/downloads-location.conf") . | quote }}
{{- end }}
38 changes: 33 additions & 5 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,48 @@ env:
nginx:
enabled: true
fullnameOverride: ""
nginx:
extensions:
location:
enabled: true
fileName: downloads-location.conf
authorization:
enabled: false
replicaCount: 1
image:
repository: common/nginx
tag: "v2.1.1"
tag: "v2.1.5"
port: 8080
targetPort: 8080
nodePort: 30003

backend:
host: "127.0.0.1"
port: 8082
enabled: false

prometheusExporter:
# -- Enable or disable the Prometheus exporter sidecar
enabled: true
image:
# -- Docker image name for the Prometheus exporter
repository: common/nginx/nginx-prometheus-exporter
# -- Docker image tag for the Prometheus exporter
tag: latest
# -- Image pull policy for the Prometheus exporter
pullPolicy: IfNotPresent
resources:
# -- Enable or disable resource limits and requests
enabled: true
value:
limits:
# -- CPU limit for the main container
cpu: 100m
# -- Memory limit for the main container
memory: 128Mi
requests:
# -- CPU request for the main container
cpu: 100m
# -- Memory request for the main container
memory: 128Mi

opentelemetry:
serviceName: ""
Expand All @@ -92,9 +121,8 @@ nginx:
claimName: "internal-pvc-nfs"

extraVolumeMounts:
- mountPath: "/etc/nginx/conf.d/downloads.conf"
- mountPath: "/etc/nginx/conf.d/extensions"
name: nginx-config
subPath: downloads.conf
- name: gpkgs-storage
mountPath: /usr/share/nginx/html/downloads
subPath: gpkgs
Expand Down
Loading