1 Commits

Author SHA1 Message Date
98bdc48716 force https in opensearch xml
All checks were successful
Github-Actions / build (push) Successful in 56s
Docker Image CI / build (push) Successful in 4m27s
2024-08-01 22:54:28 -05:00
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ version: '2'
# docker compose run --rm packages_web python manage.py generate_keyring pgp.surfnet.nl ./config/keyring
# docker compose run --rm packages_web python manage.py pgp_import ./config/keyring
## go to /admin/devel/developerkey/ and set the owner (and parent) for the ownerless key
## go to /admin/sites/site/1/change/ and set the domain
services:

View File

@@ -21,7 +21,7 @@ from ..utils import get_wrong_permissions, multilib_differences
@require_safe
@cache_control(public=True, max_age=86400)
def opensearch(request):
domain = "%s://%s" % (request.scheme, request.META.get('HTTP_HOST'))
domain = "%ss://%s" % ('https', request.META.get('HTTP_HOST'))
return render(request, 'packages/opensearch.xml',
{'domain': domain},