2022-06-07 19:34:52 -04:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/recipes
|
2022-10-01 08:41:45 -04:00
|
|
|
tag: 1.4.4@sha256:c254927591d78ac45af0dc41b44fba4595c93d973366aa6643793dac5c995452
|
2022-06-07 19:34:52 -04:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
nginxImage:
|
|
|
|
repository: tccr.io/truecharts/nginx
|
2022-10-28 05:18:42 -04:00
|
|
|
tag: 1.23.2@sha256:4fcc18dd9432aa527f5ce55cca0045a1b94d6229a56671b8b6a902f0dbaa74fd
|
2022-06-07 19:34:52 -04:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
configmap:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
nginx-config: |-
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name _;
|
|
|
|
client_max_body_size 16M;
|
|
|
|
# serve media files
|
|
|
|
location /media/ {
|
|
|
|
alias /media/;
|
|
|
|
}
|
|
|
|
# serve static files
|
|
|
|
location /static/ {
|
|
|
|
alias /static/;
|
|
|
|
}
|
|
|
|
# pass requests for dynamic content to gunicorn
|
|
|
|
location / {
|
2022-08-18 16:57:40 -04:00
|
|
|
proxy_set_header Host $http_host;
|
2022-06-07 19:34:52 -04:00
|
|
|
proxy_pass http://localhost:8080;
|
2022-09-25 05:21:41 -04:00
|
|
|
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
2022-06-07 19:34:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
ALLOWED_HOSTS: "*"
|
2022-08-27 14:40:42 -04:00
|
|
|
CSRF_TRUSTED_ORIGINS: ""
|
2022-06-07 19:34:52 -04:00
|
|
|
GUNICORN_MEDIA: 0
|
|
|
|
FRACTION_PREF_DEFAULT: 0
|
|
|
|
COMMENT_PREF_DEFAULT: 1
|
|
|
|
SHOPPING_MIN_AUTOSYNC_INTERVAL: 5
|
|
|
|
TIMEZONE: "{{ .Values.TZ }}"
|
|
|
|
DB_ENGINE: "django.db.backends.postgresql"
|
|
|
|
POSTGRES_DB: "{{ .Values.postgresql.postgresqlDatabase }}"
|
|
|
|
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
|
|
|
POSTGRES_PORT: "5432"
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: postgresql-password
|
|
|
|
POSTGRES_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: plainhost
|
|
|
|
SECRET_KEY:
|
|
|
|
secretKeyRef:
|
|
|
|
name: recipes-secrets
|
|
|
|
key: SECRET_KEY
|
|
|
|
|
|
|
|
additionalContainers:
|
|
|
|
nginx:
|
|
|
|
name: nginx
|
|
|
|
image: "{{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}"
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: main
|
|
|
|
volumeMounts:
|
2022-07-22 21:37:45 -04:00
|
|
|
- name: recipes-config
|
|
|
|
mountPath: "/etc/nginx/nginx.conf"
|
|
|
|
subPath: nginx-config
|
|
|
|
readOnly: true
|
|
|
|
- name: media
|
|
|
|
mountPath: "/media"
|
|
|
|
- name: static
|
|
|
|
mountPath: "/static"
|
2022-06-07 19:34:52 -04:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 10029
|
|
|
|
targetPort: 80
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
media:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/opt/recipes/mediafiles"
|
|
|
|
static:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: "/opt/recipes/staticfiles"
|
|
|
|
recipes-config:
|
|
|
|
enabled: "true"
|
|
|
|
mountPath: "/etc/nginx/nginx.conf"
|
|
|
|
subPath: "nginx.conf"
|
|
|
|
type: "custom"
|
|
|
|
volumeSpec:
|
|
|
|
configMap:
|
|
|
|
name: '{{ printf "%v-config" (include "tc.common.names.fullname" .) }}'
|
|
|
|
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
existingSecret: "dbcreds"
|
|
|
|
postgresqlUsername: recipes
|
|
|
|
postgresqlDatabase: recipes
|
2022-08-08 20:29:33 -04:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: true
|