{# One application. This is the page the list links to, and it exists to answer the questions an operator would otherwise open an SSH session for: what is it, what runs it, what is in front of it, what was it told, and what has happened to it. The environment is shown with its secrets hidden. An application's environment is where the database password lives, and a control panel that prints it to the browser has handed it to every extension the operator has installed. #} {% extends "base.html" %} {% import "_macros.html" as m %} {% block title %}{{ domain }}{% endblock %} {% block content %} {% call m.page_head(domain, status) %} {{ m.follow_button("Logs", domain, log_url) }} {{ m.action_button("Restart", restart_endpoint, none, "Restarted " ~ domain) }} {{ m.action_button("Stop", stop_endpoint, "Stop " ~ domain ~ "? The site stops answering until it is started again.", "Stopped " ~ domain) }} {{ m.action_button("Start", start_endpoint, none, "Started " ~ domain) }} {# No rows on this screen: the button targets itself and swaps nothing. The deletion is a job, and the job is reported by the feed and the activity screen. #} {{ m.danger_button("Delete", delete_endpoint, domain, delete_consequence, none, "this") }} {% endcall %}

Application

{{ m.badge(state, status) }}

{{ m.facts(facts) }}

Certificate

{{ m.facts(certificate) }}

Issuing and renewal live on the certificates screen.

Service

{% if service %} {{ m.facts(service) }} {% else %}

No systemd unit is recorded for this application.

{% endif %}

Site

{% if site %} {{ m.facts(site) }} {% else %}

No web server configuration is recorded for this application.

{% endif %}

Environment

{% if env %} {% for item in env %} {% endfor %}
VariableValue
{{ item.name }} {%- if item.redacted %}{{ m.secret(item.value) }} {%- else %}{{ item.value }}{% endif -%}
{% else %}

No environment variables are recorded for this application.

{% endif %}

Recent jobs

{% if jobs %}
{% for job in jobs %} {% call m.row(job.name, job.state, [("result", job.status), ("finished", job.finished)], "/activity", "row-" ~ job.id) %} Open {% endcall %} {% endfor %}
{% else %}

Nothing has run against this application since the panel started.

{% endif %}
{% endblock %}