2022-07-12 13:17:35 -04:00
|
|
|
image:
|
2023-08-12 06:05:18 -04:00
|
|
|
repository: tccr.io/truecharts/plausible
|
2022-07-12 13:17:35 -04:00
|
|
|
pullPolicy: IfNotPresent
|
2023-08-12 06:05:18 -04:00
|
|
|
tag: v2.0.0@sha256:1ef59e863cfdcddc308d4ec743091bc8eda4f62e16b269cf4d778c89b8c02a68
|
2022-07-12 13:17:35 -04:00
|
|
|
|
2023-08-30 17:25:15 -04:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 10277
|
|
|
|
|
2022-07-12 13:17:35 -04:00
|
|
|
# Plausible self-hosting documentation
|
|
|
|
# https://plausible.io/docs/self-hosting
|
|
|
|
plausible:
|
|
|
|
# Server
|
2023-08-30 17:25:15 -04:00
|
|
|
server:
|
|
|
|
base_url: http://localhost:10277
|
|
|
|
disable_registration: "true"
|
|
|
|
log_failed_login_attempts: false
|
|
|
|
# Logging
|
|
|
|
log_level: warn
|
2022-07-12 13:17:35 -04:00
|
|
|
|
|
|
|
# Database
|
2023-08-30 17:25:15 -04:00
|
|
|
db:
|
|
|
|
clickhouse_flush_interval_ms: 5000
|
|
|
|
clickhouse_max_buffer_size: 10000
|
2022-07-12 13:17:35 -04:00
|
|
|
|
|
|
|
# Mailer/SMTP Setup
|
2023-08-30 17:25:15 -04:00
|
|
|
email:
|
|
|
|
mailer_email: hello@plausible.local
|
|
|
|
mailer_name: ""
|
|
|
|
smtp_host_address: localhost
|
|
|
|
smtp_host_port: 25
|
|
|
|
smtp_user_name: ""
|
|
|
|
smtp_user_password: ""
|
|
|
|
smtp_host_ssl_enabled: false
|
|
|
|
smtp_retries: 2
|
|
|
|
mailer_adapter: Bamboo.SMTPAdapter
|
|
|
|
postmark_api_key: ""
|
|
|
|
mailgun_api_key: ""
|
|
|
|
mailgun_domain: ""
|
|
|
|
mailgun_base_uri: ""
|
|
|
|
mandrill_api_key: ""
|
|
|
|
sendgrid_api_key: ""
|
2023-08-12 06:05:18 -04:00
|
|
|
|
|
|
|
# IP Geolocation
|
|
|
|
# todo(investigate where automatic updates are stored and configure storage accordingly)
|
2023-08-30 17:25:15 -04:00
|
|
|
maxmind:
|
|
|
|
license_key: ""
|
|
|
|
edition: GeoLite2-City
|
2022-07-12 13:17:35 -04:00
|
|
|
|
|
|
|
# Google Search Integration
|
2023-08-30 17:25:15 -04:00
|
|
|
google:
|
|
|
|
client_id: ""
|
|
|
|
client_secret: ""
|
2022-07-12 13:17:35 -04:00
|
|
|
|
2023-08-12 06:05:18 -04:00
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
initContainers:
|
|
|
|
db-create:
|
|
|
|
type: install
|
|
|
|
enabled: true
|
|
|
|
imageSelector: image
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: plausible-config
|
|
|
|
- secretRef:
|
|
|
|
name: plausible-secret
|
|
|
|
command: sh
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- /entrypoint.sh db createdb && /entrypoint.sh db migrate
|
|
|
|
db-migrate:
|
|
|
|
type: upgrade
|
|
|
|
enabled: true
|
|
|
|
imageSelector: image
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: plausible-config
|
|
|
|
- secretRef:
|
|
|
|
name: plausible-secret
|
|
|
|
command: sh
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- /entrypoint.sh db migrate
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
readOnlyRootFilesystem: false
|
2023-08-30 17:25:15 -04:00
|
|
|
env:
|
|
|
|
PORT: "{{ .Values.service.main.ports.main.port }}"
|
2023-08-12 06:05:18 -04:00
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: plausible-config
|
|
|
|
- secretRef:
|
|
|
|
name: plausible-secret
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: http
|
|
|
|
path: /api/health
|
|
|
|
readiness:
|
|
|
|
type: http
|
|
|
|
path: /api/health
|
|
|
|
startup:
|
2023-08-30 17:25:15 -04:00
|
|
|
type: tcp
|
2022-07-12 13:17:35 -04:00
|
|
|
|
2023-08-12 06:05:18 -04:00
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: plausible
|
|
|
|
database: plausible
|
2022-07-12 13:17:35 -04:00
|
|
|
|
|
|
|
clickhouse:
|
|
|
|
enabled: true
|
|
|
|
clickhouseUsername: plausible
|
|
|
|
clickhouseDatabase: plausible
|
2022-08-08 17:25:02 -04:00
|
|
|
|
|
|
|
portal:
|
2023-08-12 06:05:18 -04:00
|
|
|
open:
|
|
|
|
enabled: true
|