docker-cache: fix port

This commit is contained in:
Nico Schottelius 2021-12-04 21:15:42 +01:00
parent 2ea07fba63
commit 0c573e0788
2 changed files with 6 additions and 10 deletions

View File

@ -3,15 +3,12 @@ server {
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
server_name {{ tpl .Values.fqdn . }}; server_name {{ tpl .Values.fqdn . }};
# Use Mozilla's guidelines for SSL/TLS settings
# https://mozilla.github.io/server-side-tls/ssl-config-generator/
ssl_certificate /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/fullchain.pem; ssl_certificate /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/{{ tpl .Values.fqdn . }}/privkey.pem;
client_max_body_size 1024m; client_max_body_size 1024m;
location / { location / {
proxy_pass http://localhost:3000; proxy_pass http://localhost:5000;
} }
} }

View File

@ -8,6 +8,8 @@ spec:
matchLabels: matchLabels:
app: {{ .Release.Name }}-registry app: {{ .Release.Name }}-registry
replicas: 1 replicas: 1
strategy:
type: Recreate
template: template:
metadata: metadata:
labels: labels:
@ -44,12 +46,9 @@ spec:
image: registry:{{ .Chart.AppVersion }} image: registry:{{ .Chart.AppVersion }}
ports: ports:
- containerPort: 5000 - containerPort: 5000
# env: env:
# - name: SYNAPSE_CONFIG_PATH - name: REGISTRY_PROXY_REMOTEURL
# value: "/baseconfig/homeserver.yaml" value: https://registry-1.docker.io
# - name: SYNAPSE_CONFIG_DIR
# value: "/config"
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: "/var/lib/registry" mountPath: "/var/lib/registry"