fix(intentree): fixup (#3209)
* fix(intentree): fixup * test change * Add mail options to GUI * whoops * change... something?! * whoops * change workdir * try diff user * plainhost * bump mosq for docs to publish * update redis url * use new plainhostpass [skip ci] * update video link in docs [skip ci] * remove uneeded configmap
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
name: cloudflareddns
|
name: cloudflareddns
|
||||||
version: 1.0.1
|
version: 1.0.2
|
||||||
appVersion: "latest"
|
appVersion: "latest"
|
||||||
description: Update your Cloudflare DNS records automatically for those with a dynamic IP
|
description: Update your Cloudflare DNS records automatically for those with a dynamic IP
|
||||||
type: application
|
type: application
|
||||||
|
|||||||
@@ -17,7 +17,10 @@ Cloudflareddns chart
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
This guide assumes you've followed our main [Quick-Start Guide](https://truecharts.org/docs/manual/SCALE%20Apps/Quick-Start%20Guides/adding-letsencrypt) with your domain on TrueNAS and done the configuration for your DNS on Cloudflare (see [this video](https://www.youtube.com/watch?v=hJVghecs3rE) on our YouTube channel)
|
This guide assumes you've followed our main [Quick-Start Guide](https://truecharts.org/docs/manual/SCALE%20Apps/Quick-Start%20Guides/adding-letsencrypt) with your domain on TrueNAS and done the configuration for your DNS on Cloudflare
|
||||||
|
(see this video on our YouTube channel)
|
||||||
|
|
||||||
|
<iframe width="560" height="315" src="https://www.youtube.com/watch?v=hJVghecs3rE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||||
|
|
||||||
The recommended way is to setup CNAMEs for your subdomains (charts) and keep your A record pointed to your base domain, such as below
|
The recommended way is to setup CNAMEs for your subdomains (charts) and keep your A record pointed to your base domain, such as below
|
||||||
|
|
||||||
@@ -66,6 +69,7 @@ Use Global API key from Cloudflare Domain Overview page (see above) for the `CF_
|
|||||||
If you're using or changing specific A records or CNAMEs you may want to refer to the upstream documentation for more examples [here](https://hotio.dev/containers/cloudflareddns/))
|
If you're using or changing specific A records or CNAMEs you may want to refer to the upstream documentation for more examples [here](https://hotio.dev/containers/cloudflareddns/))
|
||||||
|
|
||||||
Steps 4-8: Adjust as necessary but defaults are fine
|
Steps 4-8: Adjust as necessary but defaults are fine
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
- If you need more details or have a more custom setup the documentation on the [upstream](https://hotio.dev/containers/cloudflareddns/) is very complete so check the descriptions of the options there.
|
- If you need more details or have a more custom setup the documentation on the [upstream](https://hotio.dev/containers/cloudflareddns/) is very complete so check the descriptions of the options there.
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ dependencies:
|
|||||||
name: postgresql
|
name: postgresql
|
||||||
repository: https://charts.truecharts.org/
|
repository: https://charts.truecharts.org/
|
||||||
version: 8.0.30
|
version: 8.0.30
|
||||||
|
- condition: redis.enabled
|
||||||
|
name: redis
|
||||||
|
repository: https://charts.truecharts.org
|
||||||
|
version: 3.0.30
|
||||||
description: InvenTree is an open-source Inventory Management System which provides powerful low-level stock control and part tracking.
|
description: InvenTree is an open-source Inventory Management System which provides powerful low-level stock control and part tracking.
|
||||||
home: https://github.com/truecharts/apps/tree/master/charts/incubator/inventree
|
home: https://github.com/truecharts/apps/tree/master/charts/incubator/inventree
|
||||||
icon: https://truecharts.org/img/chart-icons/inventree.png
|
icon: https://truecharts.org/img/chart-icons/inventree.png
|
||||||
@@ -23,7 +27,7 @@ name: inventree
|
|||||||
sources:
|
sources:
|
||||||
- https://inventree.readthedocs.io
|
- https://inventree.readthedocs.io
|
||||||
- https://github.com/inventree/InvenTree
|
- https://github.com/inventree/InvenTree
|
||||||
version: 3.0.23
|
version: 3.0.24
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- utilities
|
- utilities
|
||||||
|
|||||||
@@ -148,6 +148,62 @@ questions:
|
|||||||
description: "ERROR"
|
description: "ERROR"
|
||||||
- value: "CRITICAL"
|
- value: "CRITICAL"
|
||||||
description: "CRITICAL"
|
description: "CRITICAL"
|
||||||
|
- variable: email_settings
|
||||||
|
label: 'Show Email Settings'
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
show_subquestions_if:
|
||||||
|
subquestions:
|
||||||
|
- variable: INVENTREE_EMAIL_BACKEND
|
||||||
|
label: 'INVENTREE_EMAIL_BACKEND'
|
||||||
|
description: "Email backend module"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "django.core.mail.backends.smtp.EmailBackend"
|
||||||
|
- variable: INVENTREE_EMAIL_HOST
|
||||||
|
label: 'INVENTREE_EMAIL_HOST'
|
||||||
|
description: "Email server host"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: INVENTREE_EMAIL_PORT
|
||||||
|
label: 'INVENTREE_EMAIL_PORT'
|
||||||
|
description: "Email server port"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 587
|
||||||
|
- variable: INVENTREE_EMAIL_USERNAME
|
||||||
|
label: 'INVENTREE_EMAIL_USERNAME'
|
||||||
|
description: "Email account username"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: INVENTREE_EMAIL_PASSWORD
|
||||||
|
label: 'INVENTREE_EMAIL_PASSWORD'
|
||||||
|
description: "Email account password"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
|
- variable: INVENTREE_EMAIL_TLS
|
||||||
|
label: 'INVENTREE_EMAIL_TLS'
|
||||||
|
description: "Enable TLS support"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
- variable: INVENTREE_EMAIL_SSL
|
||||||
|
label: 'INVENTREE_EMAIL_SSL'
|
||||||
|
description: "Enable SSL support"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
- variable: INVENTREE_EMAIL_SENDER
|
||||||
|
label: 'INVENTREE_EMAIL_SENDER'
|
||||||
|
description: "Name of sender"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ podSecurityContext:
|
|||||||
|
|
||||||
secretEnv:
|
secretEnv:
|
||||||
INVENTREE_ADMIN_EMAIL: "test@example.com"
|
INVENTREE_ADMIN_EMAIL: "test@example.com"
|
||||||
INVENTREE_ADMIN_USER: "super"
|
INVENTREE_ADMIN_USER: "testuser"
|
||||||
INVENTREE_ADMIN_PASSWORD: "secret"
|
INVENTREE_ADMIN_PASSWORD: "secret"
|
||||||
|
|
||||||
configmap:
|
configmap:
|
||||||
@@ -25,59 +25,41 @@ configmap:
|
|||||||
data:
|
data:
|
||||||
nginx-config: |-
|
nginx-config: |-
|
||||||
server {
|
server {
|
||||||
# Listen for connection on (internal) port 80
|
|
||||||
listen 10231;
|
listen 10231;
|
||||||
|
|
||||||
real_ip_header proxy_protocol;
|
real_ip_header proxy_protocol;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Forwarded-By $server_addr:$server_port;
|
proxy_set_header X-Forwarded-By $server_addr:$server_port;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header CLIENT_IP $remote_addr;
|
proxy_set_header CLIENT_IP $remote_addr;
|
||||||
|
|
||||||
proxy_pass_request_headers on;
|
proxy_pass_request_headers on;
|
||||||
|
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
|
|
||||||
# Change 'inventree-server' to the name of the inventree server container,
|
|
||||||
# and '8000' to the INVENTREE_WEB_PORT (if not default)
|
|
||||||
proxy_pass http://localhost:8000;
|
proxy_pass http://localhost:8000;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect any requests for static files
|
# Redirect any requests for static files
|
||||||
location /static/ {
|
location /static/ {
|
||||||
alias /var/www/static/;
|
alias /var/www/static/;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
|
||||||
# Caching settings
|
# Caching settings
|
||||||
expires 30d;
|
expires 30d;
|
||||||
add_header Pragma public;
|
add_header Pragma public;
|
||||||
add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect any requests for media files
|
# Redirect any requests for media files
|
||||||
location /media/ {
|
location /media/ {
|
||||||
alias /var/www/media/;
|
alias /var/www/media/;
|
||||||
|
|
||||||
# Media files require user authentication
|
# Media files require user authentication
|
||||||
auth_request /auth;
|
auth_request /auth;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use the 'user' API endpoint for auth
|
# Use the 'user' API endpoint for auth
|
||||||
location /auth {
|
location /auth {
|
||||||
internal;
|
internal;
|
||||||
|
|
||||||
proxy_pass http://localhost:8000/auth/;
|
proxy_pass http://localhost:8000/auth/;
|
||||||
|
|
||||||
proxy_pass_request_body off;
|
proxy_pass_request_body off;
|
||||||
proxy_set_header Content-Length "";
|
proxy_set_header Content-Length "";
|
||||||
proxy_set_header X-Original-URI $request_uri;
|
proxy_set_header X-Original-URI $request_uri;
|
||||||
@@ -85,29 +67,42 @@ configmap:
|
|||||||
}
|
}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
INVENTREE_TIMEZONE: "{{ .Values.TZ }}"
|
||||||
INVENTREE_DB_ENGINE: "postgresql"
|
INVENTREE_DB_ENGINE: "postgresql"
|
||||||
INVENTREE_DB_NAME: "{{ .Values.postgresql.postgresqlDatabase }}"
|
INVENTREE_DB_NAME: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||||
INVENTREE_DB_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
INVENTREE_DB_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
INVENTREE_DB_PORT: "5432"
|
INVENTREE_DB_PORT: "5432"
|
||||||
INVENTREE_TIMEZONE: "{{ .Values.TZ }}"
|
INVENTREE_CACHE_PORT: "6379"
|
||||||
|
INVENTREE_CACHE_HOST:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: plainhostpass
|
||||||
|
INVENTREE_DB_HOST:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: plainhost
|
||||||
|
INVENTREE_DB_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: dbcreds
|
||||||
|
key: postgresql-password
|
||||||
|
INVENTREE_SECRET_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: inventree-secrets
|
||||||
|
key: INVENTREE_SECRET_KEY
|
||||||
# User Defined
|
# User Defined
|
||||||
INVENTREE_DEBUG: false
|
INVENTREE_DEBUG: false
|
||||||
INVENTREE_LOG_LEVEL: "INFO"
|
INVENTREE_LOG_LEVEL: "INFO"
|
||||||
INVENTREE_PLUGINS_ENABLED: false
|
INVENTREE_PLUGINS_ENABLED: false
|
||||||
INVENTREE_LOGIN_CONFIRM_DAYS: 3
|
INVENTREE_LOGIN_CONFIRM_DAYS: 3
|
||||||
INVENTREE_LOGIN_ATTEMPTS: 5
|
INVENTREE_LOGIN_ATTEMPTS: 5
|
||||||
INVENTREE_DB_PASSWORD:
|
# INVENTREE_EMAIL_BACKEND: "django.core.mail.backends.smtp.EmailBackend"
|
||||||
secretKeyRef:
|
# INVENTREE_EMAIL_HOST: ""
|
||||||
name: dbcreds
|
# INVENTREE_EMAIL_PORT: 587
|
||||||
key: postgresql-password
|
# INVENTREE_EMAIL_USERNAME: ""
|
||||||
INVENTREE_DB_HOST:
|
# INVENTREE_EMAIL_PASSWORD: ""
|
||||||
secretKeyRef:
|
# INVENTREE_EMAIL_TLS: False
|
||||||
name: dbcreds
|
# INVENTREE_EMAIL_SSL: False
|
||||||
key: plainhost
|
# INVENTREE_EMAIL_SENDER: ""
|
||||||
INVENTREE_SECRET_KEY:
|
|
||||||
secretKeyRef:
|
|
||||||
name: inventree-secrets
|
|
||||||
key: INVENTREE_SECRET_KEY
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
@@ -137,8 +132,6 @@ initContainers:
|
|||||||
- name: data
|
- name: data
|
||||||
mountPath: "/home/inventree/data"
|
mountPath: "/home/inventree/data"
|
||||||
env:
|
env:
|
||||||
- name: INVENTREE_TIMEZONE
|
|
||||||
value: "{{ .Values.TZ }}"
|
|
||||||
- name: INVENTREE_DB_ENGINE
|
- name: INVENTREE_DB_ENGINE
|
||||||
value: "postgresql"
|
value: "postgresql"
|
||||||
- name: INVENTREE_DB_NAME
|
- name: INVENTREE_DB_NAME
|
||||||
@@ -147,6 +140,13 @@ initContainers:
|
|||||||
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
- name: INVENTREE_DB_PORT
|
- name: INVENTREE_DB_PORT
|
||||||
value: "5432"
|
value: "5432"
|
||||||
|
- name: INVENTREE_CACHE_PORT
|
||||||
|
value: "6379"
|
||||||
|
- name: INVENTREE_CACHE_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: plainhostpass
|
||||||
- name: INVENTREE_DB_HOST
|
- name: INVENTREE_DB_HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@@ -162,22 +162,11 @@ initContainers:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: inventree-secrets
|
name: inventree-secrets
|
||||||
key: INVENTREE_SECRET_KEY
|
key: INVENTREE_SECRET_KEY
|
||||||
- name: INVENTREE_LOG_LEVEL
|
|
||||||
value: "{{ .Values.env.INVENTREE_LOG_LEVEL }}"
|
|
||||||
- name: INVENTREE_DEBUG
|
|
||||||
value: "{{ .Values.env.INVENTREE_DEBUG }}"
|
|
||||||
- name: INVENTREE_LOGIN_CONFIRM_DAYS
|
|
||||||
value: "{{ .Values.env.INVENTREE_LOGIN_CONFIRM_DAYS }}"
|
|
||||||
- name: INVENTREE_LOGIN_ATTEMPTS
|
|
||||||
value: "{{ .Values.env.INVENTREE_LOGIN_ATTEMPTS }}"
|
|
||||||
- name: INVENTREE_PLUGINS_ENABLED
|
|
||||||
value: "{{ .Values.env.INVENTREE_PLUGINS_ENABLED }}"
|
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- >
|
- |-
|
||||||
cd /home/inventree;
|
cd /home/inventree;
|
||||||
invoke update;
|
invoke update;
|
||||||
|
|
||||||
additionalContainers:
|
additionalContainers:
|
||||||
nginx:
|
nginx:
|
||||||
name: nginx
|
name: nginx
|
||||||
@@ -205,14 +194,6 @@ additionalContainers:
|
|||||||
- name: data
|
- name: data
|
||||||
mountPath: "/home/inventree/data"
|
mountPath: "/home/inventree/data"
|
||||||
env:
|
env:
|
||||||
- name: INVENTREE_ADMIN_EMAIL
|
|
||||||
value: "{{ .Values.secret.INVENTREE_ADMIN_EMAIL }}"
|
|
||||||
- name: INVENTREE_ADMIN_USER
|
|
||||||
value: "{{ .Values.secret.INVENTREE_ADMIN_USER }}"
|
|
||||||
- name: INVENTREE_ADMIN_PASSWORD
|
|
||||||
value: "{{ .Values.secret.INVENTREE_ADMIN_PASSWORD }}"
|
|
||||||
- name: INVENTREE_TIMEZONE
|
|
||||||
value: "{{ .Values.TZ }}"
|
|
||||||
- name: INVENTREE_DB_ENGINE
|
- name: INVENTREE_DB_ENGINE
|
||||||
value: "postgresql"
|
value: "postgresql"
|
||||||
- name: INVENTREE_DB_NAME
|
- name: INVENTREE_DB_NAME
|
||||||
@@ -221,6 +202,13 @@ additionalContainers:
|
|||||||
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
value: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||||
- name: INVENTREE_DB_PORT
|
- name: INVENTREE_DB_PORT
|
||||||
value: "5432"
|
value: "5432"
|
||||||
|
- name: INVENTREE_CACHE_PORT
|
||||||
|
value: "6379"
|
||||||
|
- name: INVENTREE_CACHE_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: rediscreds
|
||||||
|
key: plainhostpass
|
||||||
- name: INVENTREE_DB_HOST
|
- name: INVENTREE_DB_HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
@@ -236,20 +224,13 @@ additionalContainers:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: inventree-secrets
|
name: inventree-secrets
|
||||||
key: INVENTREE_SECRET_KEY
|
key: INVENTREE_SECRET_KEY
|
||||||
- name: INVENTREE_LOG_LEVEL
|
|
||||||
value: "{{ .Values.env.INVENTREE_LOG_LEVEL }}"
|
|
||||||
- name: INVENTREE_DEBUG
|
|
||||||
value: "{{ .Values.env.INVENTREE_DEBUG }}"
|
|
||||||
- name: INVENTREE_LOGIN_CONFIRM_DAYS
|
|
||||||
value: "{{ .Values.env.INVENTREE_LOGIN_CONFIRM_DAYS }}"
|
|
||||||
- name: INVENTREE_LOGIN_ATTEMPTS
|
|
||||||
value: "{{ .Values.env.INVENTREE_LOGIN_ATTEMPTS }}"
|
|
||||||
- name: INVENTREE_PLUGINS_ENABLED
|
|
||||||
value: "{{ .Values.env.INVENTREE_PLUGINS_ENABLED }}"
|
|
||||||
|
|
||||||
# Enabled postgres
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: "dbcreds"
|
existingSecret: "dbcreds"
|
||||||
postgresqlUsername: inventree
|
postgresqlUsername: inventree
|
||||||
postgresqlDatabase: inventree
|
postgresqlDatabase: inventree
|
||||||
|
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "rediscreds"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ name: mosquitto
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/eclipse/mosquitto
|
- https://github.com/eclipse/mosquitto
|
||||||
type: application
|
type: application
|
||||||
version: 6.0.17
|
version: 6.0.18
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- homeautomation
|
- homeautomation
|
||||||
|
|||||||
Reference in New Issue
Block a user