.env.j2 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Renovate CE Configuration
  2. # Generated by Boilerplates CLI
  3. # License and Platform Configuration
  4. {% if swarm_enabled %}
  5. MEND_RNV_LICENSE_KEY_FILE=/run/secrets/{{ service_name }}_license_key
  6. {% else %}
  7. MEND_RNV_LICENSE_KEY={{ license_key }}
  8. {% endif %}
  9. MEND_RNV_ACCEPT_TOS=Y
  10. MEND_RNV_PLATFORM={{ renovate_platform }}
  11. MEND_RNV_ENDPOINT={{ renovate_endpoint }}
  12. {% if renovate_autodiscover %}
  13. MEND_RNV_AUTODISCOVER=true
  14. {% endif %}
  15. # Platform-specific Authentication
  16. {% if swarm_enabled %}
  17. {% if renovate_platform == 'gitlab' %}
  18. MEND_RNV_GITLAB_PAT_FILE=/run/secrets/{{ service_name }}_git_token
  19. {% elif renovate_platform == 'github' %}
  20. MEND_RNV_GITHUB_APP_KEY_FILE=/run/secrets/{{ service_name }}_git_token
  21. {% elif renovate_platform == 'gitea' %}
  22. MEND_RNV_GITEA_TOKEN_FILE=/run/secrets/{{ service_name }}_git_token
  23. {% endif %}
  24. {% else %}
  25. {% if renovate_platform == 'gitlab' %}
  26. MEND_RNV_GITLAB_PAT={{ git_token }}
  27. {% elif renovate_platform == 'github' %}
  28. MEND_RNV_GITHUB_APP_KEY={{ git_token }}
  29. {% elif renovate_platform == 'gitea' %}
  30. MEND_RNV_GITEA_TOKEN={{ git_token }}
  31. {% endif %}
  32. {% endif %}
  33. # GitHub.com token for public package lookups (avoids rate limiting)
  34. {% if swarm_enabled %}
  35. GITHUB_COM_TOKEN_FILE=/run/secrets/{{ service_name }}_git_token
  36. {% else %}
  37. GITHUB_COM_TOKEN={{ git_token }}
  38. {% endif %}
  39. # Webhook Secret
  40. {% if webhook_secret %}
  41. {% if swarm_enabled %}
  42. MEND_RNV_WEBHOOK_SECRET_FILE=/run/secrets/{{ service_name }}_webhook_secret
  43. {% else %}
  44. MEND_RNV_WEBHOOK_SECRET={{ webhook_secret }}
  45. {% endif %}
  46. {% endif %}
  47. # Logging
  48. LOG_LEVEL={{ container_loglevel }}