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

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
path: / host: ${main_domain}
host: plausible-${main_domain}
- serviceName: admin
port: 8001
path: /admin
host: admin-${main_domain}
env: env:
ADMIN_USER_EMAIL: admin@example.com BASE_URL: http://${main_domain}
ADMIN_USER_NAME: admin SECRET_KEY_BASE: ${secret_base}
ADMIN_USER_PWD: ${admin_password} TOTP_VAULT_KEY: ${totp_key}
SECRET_KEY_BASE: ${secret_key}
DB: plausible
DB_USER: plausible
DB_PASSWORD: ${db_password}
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: ${password:32}
DOMAIN: ${domain:plausible}
ADMIN_DOMAIN: ${domain:admin}
mounts: mounts:
- filePath: nginx.conf - filePath: /clickhouse/clickhouse-config.xml
content: | content: |
server_name ${domain:plausible}; <clickhouse>
# resto de la configuración... <logger>
<level>warning</level>
<console>true</console>
</logger>
<!-- Stop all the unnecessary logging -->
<query_thread_log remove="remove"/>
<query_log remove="remove"/>
<text_log remove="remove"/>
<trace_log remove="remove"/>
<metric_log remove="remove"/>
<asynchronous_metric_log remove="remove"/>
<session_log remove="remove"/>
<part_log remove="remove"/>
</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>