{% extends "admin/dbs/base.html" %} {% block dbs_content %}

Connection details

A DBS manager reaches this project over SSH. In the manager, add this machine as a server with its SSH address and a user that owns the project, then add an application and give it the project's folder. The manager finds the rest: whether the project runs in Docker or Podman, its Python, manage.py, settings, backup folder and .env.

{% if details.container %}

This project runs in a container

The paths below are the ones inside the container. Give the manager the folder on the server that holds the project's compose file, or the folder mounted at {{ details.project_dir }}; it matches the container and translates each path through its mounts. The server's own address, SSH user and host key are not visible from here: compare the fingerprint the manager shows with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub run on the server.

{% endif %}
{% if not details.container %} {% endif %} {% if not details.container %} {% for key in details.host_keys %} {% empty %} {% endfor %} {% endif %}
Host{{ details.hostname }}
SSH user{{ details.ssh_user|default:"-" }}
Project folder{{ details.project_dir }}
Python{{ details.python_path }}
manage.py{{ details.manage_path|default:"-" }}
Settings module{{ details.settings_module|default:"-" }}
Backup folder{{ details.remote_backup_dir|default:"not set" }}
.env file{{ details.env_path|default:"none found" }}
DBS version{{ details.dbs_version }}
Host key{{ key.type }} {{ key.fingerprint }}
Host keyNo readable host key in /etc/ssh; compare the fingerprint the manager shows with ssh-keyscan.

Let the manager in

Add the manager's public key as one line in the ~/.ssh/authorized_keys of the server user that owns the project folder. The manager shows that line when it creates a key for the server.

{% endblock %}