Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
5e9a66f8
Commit
5e9a66f8
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue86' into 'master'
Service checks. Closes
#86
. Closes
#86
See merge request Teckids/BiscuIT/BiscuIT-ng!48
parents
b5905037
b735b53c
No related branches found
No related tags found
1 merge request
!48
Service checks. Closes #86.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/core/settings.py
+2
-1
2 additions, 1 deletion
biscuit/core/settings.py
biscuit/core/templates/core/system_status.html
+38
-0
38 additions, 0 deletions
biscuit/core/templates/core/system_status.html
with
40 additions
and
1 deletion
biscuit/core/settings.py
+
2
−
1
View file @
5e9a66f8
...
...
@@ -283,13 +283,14 @@ if _settings.get('mail.server.host', None):
EMAIL_HOST_USER
=
_settings
.
get
(
'
mail.server.user
'
)
EMAIL_HOST_PASSWORD
=
_settings
.
get
(
'
mail.server.password
'
)
TEMPLATE_VISIBLE_SETTINGS
=
[
'
ADMINS
'
]
TEMPLATE_VISIBLE_SETTINGS
=
[
'
ADMINS
'
,
'
DEBUG
'
]
MAINTENANCE_MODE
=
_settings
.
get
(
'
maintenance.enabled
'
,
None
)
MAINTENANCE_MODE_IGNORE_IP_ADDRESSES
=
_settings
.
get
(
'
maintenance.ignore_ips
'
,
_settings
.
get
(
'
debug.internal_ips
'
,
[]))
MAINTENANCE_MODE_GET_CLIENT_IP_ADDRESS
=
'
ipware.ip.get_ip
'
MAINTENANCE_MODE_IGNORE_SUPERUSER
=
True
MAINTENANCE_MODE_STATE_FILE_PATH
=
_settings
.
get
(
'
maintenance.statefile
'
,
'
maintenance_mode_state.txt
'
)
IMPERSONATE
=
{
'
USE_HTTP_REFERER
'
:
True
,
...
...
This diff is collapsed.
Click to expand it.
biscuit/core/templates/core/system_status.html
+
38
−
0
View file @
5e9a66f8
...
...
@@ -7,6 +7,44 @@
{% block page_title %}{% blocktrans %}System status{% endblocktrans %}{% endblock %}
{% block content %}
<div
class=
"card"
>
<div
class=
"card-header bg-light text-dark"
>
{% blocktrans %}System checks{% endblocktrans %}
</div>
<ul
class=
"list-group list-group-flush"
>
<li
class=
"list-group-item d-flex justify-content-between align-items-center"
>
{% if maintenance_mode %}
<div>
<p>
{% blocktrans %}Maintenance mode enabled{% endblocktrans %}
</p>
<p
class=
"small"
>
{% blocktrans%}Only admin and visitors from internal IPs can access the site.{% endblocktrans %}
</p>
</div>
<span
class=
"badge badge-danger"
><a
href=
"{% url 'maintenance_mode_off' %}"
>
{% fa 'power-off' %}
</a></span>
{% else %}
<div>
<p>
{% blocktrans %}Maintenance mode disabled{% endblocktrans %}
</p>
<p
class=
"small"
>
{% blocktrans%}Everyone can access the site.{% endblocktrans %}
</p>
</div>
<span
class=
"badge badge-success"
><a
href=
"{% url 'maintenance_mode_on' %}"
>
{% fa 'power-off' %}
</a></span>
{% endif %}
</li>
<li
class=
"list-group-item d-flex justify-content-between align-items-center"
>
{% if DEBUG %}
<div>
<p>
{% blocktrans %}Debug mode enabled{% endblocktrans %}
</p>
<p
class=
"small"
>
{% blocktrans%}The web server throws back debug information on errors. Do not use in production!{% endblocktrans %}
</p>
</div>
<span
class=
"badge badge-danger"
>
{% fa 'power-off' %}
</span>
{% else %}
<div>
<p>
{% blocktrans %}Debug mode disabled{% endblocktrans %}
</p>
<p
class=
"small"
>
{% blocktrans%}Debug mode is disabled. Default error pages are displayed on errors.{% endblocktrans %}
</p>
</div>
<span
class=
"badge badge-success"
>
{% fa 'power-off' %}
</span>
{% endif %}
</li>
</ul>
</div>
<div
class=
"card"
>
<div
class=
"card-header bg-light text-dark"
>
{% blocktrans %}Recent backup cron jobs{% endblocktrans %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment