Added commit hash in config file

This commit is contained in:
sb745 2025-03-04 22:04:59 +02:00
parent 438ce1cd6f
commit 7f229a3d6e
Signed by: sb745
GPG key ID: 1C93C11AC862817B
2 changed files with 4 additions and 1 deletions

View file

@ -231,3 +231,6 @@ CACHE_THRESHOLD = 8192
# To actually make this work across multiple worker processes, use redis
# RATELIMIT_STORAGE_URL="redis://host:port"
RATELIMIT_KEY_PREFIX="nyaaratelimit_"
# Use this to show the commit hash in the footer (see layout.html)
# COMMIT_HASH="[enter your commit hash here]";

View file

@ -331,7 +331,7 @@
<footer style="text-align: center;">
<p>Dark Mode: <a href="#" id="themeToggle">Toggle</a></p>
{% if config.COMMIT_HASH %}
<p>Commit: <a href="https://github.com/nyaadevs/nyaa/tree/{{ config.COMMIT_HASH }}">{{ config.COMMIT_HASH[:7] }}</a></p>
<p>Commit: <a href="https://github.com/sb745/NyaaV3/tree/{{ config.COMMIT_HASH }}">{{ config.COMMIT_HASH[:7] }}</a></p>
{% endif %}
</footer>
</body>