-
Hello everyone, how are you? I would like to include 2 simple HTML files (specifically "Terms of Use" and "Privacy Policy"), but I am not managing to do so. Currently, I am running the latest build of the Docker image. Could you help me with how to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The HTML template in the source code: https://github.com/searxng/searxng/tree/master/searx/templates/simple So add these two "volumes" to the searxng container:
The html files are Jinja2 templates, so
{% extends "simple/base.html" %}
{% block content %}
<div class="privacy_policy">
<div class="title"><h1>Privacy Policy</h1></div>
<p>...</p>
<p>....</p>
</div>
{% endblock %} Disclaimer: this is untested. |
Beta Was this translation helpful? Give feedback.
-
Sorry for dummy question. I need put those volumes in which file? docker.compose.yaml? |
Beta Was this translation helpful? Give feedback.
-
Here, below this line searxng-docker/docker-compose.yaml Line 44 in 070b02e |
Beta Was this translation helpful? Give feedback.
-
First at all. Thank you a lot for your time.
I converted html file to Jinja 2 format, but when try to access the page (https://XXXX.com/private_policy.html I receive "Page not Found". What am I doing wrong?
|
Beta Was this translation helpful? Give feedback.
-
FYI there is a PR that needs some work / I would prefer to see some progress in this PR over having a hackish solution in a docker image. |
Beta Was this translation helpful? Give feedback.
FYI there is a PR that needs some work / I would prefer to see some progress in this PR over having a hackish solution in a docker image.