Update template.yml

This commit is contained in:
Mauricio Siu 2025-03-01 01:43:39 -06:00 committed by GitHub
parent 4d5c7fd6ba
commit a25fe78d21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,44 +1,55 @@
metadata: metadata:
id: plausible id: plausible
name: Plausible Analytics name: Plausible Analytics
description: Privacy-focused Google Analytics alternative description: Privacy-focused Google Analytics alternative
tags: tags:
- analytics - analytics
- privacy - privacy
- statistics - statistics
variables: variables:
db_password: ${password:32} main_domain: ${randomDomain}
admin_password: ${password:16} secret_base: ${base64:64}
secret_key: ${base64:64} totp_key: ${base64:32}
main_domain: ${randomDomain}
config:
config: domains:
domains: - serviceName: plausible
- serviceName: plausible port: 8000
port: 8000 host: ${main_domain}
path: /
host: plausible-${main_domain} env:
- serviceName: admin BASE_URL: http://${main_domain}
port: 8001 SECRET_KEY_BASE: ${secret_base}
path: /admin TOTP_VAULT_KEY: ${totp_key}
host: admin-${main_domain}
mounts:
env: - filePath: /clickhouse/clickhouse-config.xml
ADMIN_USER_EMAIL: admin@example.com content: |
ADMIN_USER_NAME: admin <clickhouse>
ADMIN_USER_PWD: ${admin_password} <logger>
SECRET_KEY_BASE: ${secret_key} <level>warning</level>
DB: plausible <console>true</console>
DB_USER: plausible </logger>
DB_PASSWORD: ${db_password}
CLICKHOUSE_USER: default <!-- Stop all the unnecessary logging -->
CLICKHOUSE_PASSWORD: ${password:32} <query_thread_log remove="remove"/>
DOMAIN: ${domain:plausible} <query_log remove="remove"/>
ADMIN_DOMAIN: ${domain:admin} <text_log remove="remove"/>
<trace_log remove="remove"/>
mounts: <metric_log remove="remove"/>
- filePath: nginx.conf <asynchronous_metric_log remove="remove"/>
content: | <session_log remove="remove"/>
server_name ${domain:plausible}; <part_log remove="remove"/>
# resto de la configuración... </clickhouse>
- filePath: /clickhouse/clickhouse-user-config.xml
content: |
<clickhouse>
<profiles>
<default>
<log_queries>0</log_queries>
<log_query_threads>0</log_query_threads>
</default>
</profiles>
</clickhouse>