Update trusted proxies configuration to use default environment variable and add importmap block in base template
All checks were successful
CI (Gitea) / php-tests (push) Successful in 10m16s
CI (Gitea) / docker-image (push) Successful in 2m29s

This commit is contained in:
2025-11-28 08:59:28 +00:00
parent fa54cb4167
commit 4ae7a44881
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html # see https://symfony.com/doc/current/reference/configuration/framework.html
framework: framework:
secret: '%env(APP_SECRET)%' secret: '%env(APP_SECRET)%'
trusted_proxies: '%env(TRUSTED_PROXIES)%' trusted_proxies: '%env(default::TRUSTED_PROXIES)%'
trusted_headers: ['x-forwarded-for','x-forwarded-proto','x-forwarded-port','x-forwarded-host','x-forwarded-prefix'] trusted_headers: ['x-forwarded-for','x-forwarded-proto','x-forwarded-port','x-forwarded-host','x-forwarded-prefix']
# Note that the session will be started ONLY if you read or write from it. # Note that the session will be started ONLY if you read or write from it.

View File

@@ -39,6 +39,9 @@
</main> </main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
{% block javascripts %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
{% endblock %}
{% include '_partials/auth_modal.html.twig' %} {% include '_partials/auth_modal.html.twig' %}
</body> </body>
</html> </html>