Skip to content

Commit

Permalink
https support in external env
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Arcuri committed Sep 2, 2024
1 parent 5ca417d commit bf72c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,7 @@
LOCAL_UPLOAD_PATH = env("LOCAL_UPLOAD_PATH")
# Regipy plugins
REGIPY_PLUGINS = env.list("REGIPY_PLUGINS")

# HTTPS
SECURE_PROXY_SSL_HEADER = env("HTTP_X_FORWARDED_PROTO", "http")
SECURE_SSL_REDIRECT = env.bool("SECURE_SSL_REDIRECT", False)
5 changes: 2 additions & 3 deletions orochi/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@
<script src="{% static 'js/jquery-3.5.1.js' %}" type="text/javascript" language="javascript"></script>
<script src="{% static 'js/bootstrap/bootstrap.bundle.min.js' %}" type="text/javascript"
language="javascript"></script>
<script src="{% static 'js/datatables/dataTables.js' %}" type="text/javascript"
language="javascript"></script>
<script src="{% static 'js/datatables/dataTables.js' %}" type="text/javascript" language="javascript"></script>
<script src="{% static 'js/wunderbaum/wunderbaum.umd.min.js' %}" type="text/javascript"
language="javascript"></script>
<script src="{% static 'js/datatables/dataTables.bootstrap5.js' %}" type="text/javascript"
Expand Down Expand Up @@ -249,7 +248,7 @@
$.ajax({
url: "{% url 'api:dask_status' %}",
success: function (data) {
$("#tasks_running").html(data.running);
$("#tasks_running").html(data);
},
timeout: 2000
});
Expand Down

0 comments on commit bf72c21

Please sign in to comment.