# abulsdl/dgr_nginx architecture

> Architecture diagram of the GitHub repository abulsdl/dgr_nginx, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abulsdl/dgr_nginx
- Repository: https://github.com/abulsdl/dgr_nginx

## Overview

PROFI.neo is a customer-configured HTTPS reverse proxy: nginx runs in a container, terminates TLS, and forwards `/profi/` traffic over HTTP to JBoss. The documented setup flow is to provide host and instance settings, render and check nginx configuration, start the proxy, then issue a certificate. Renewal and health checks run on systemd timers, with mail reporting for failures. The graph follows README-documented relationships only; source excerpts were not available, so implementation-level calls and configuration details are omitted.

Main entry points: [`scripts/render.sh`](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/render.sh) (Config renderer), [`nginx/nginx.conf`](https://github.com/abulsdl/dgr_nginx/blob/main/nginx/nginx.conf) (nginx proxy), [`host.env.example`](https://github.com/abulsdl/dgr_nginx/blob/main/host.env.example) (Host settings), [`sites/_beispiel.env.example`](https://github.com/abulsdl/dgr_nginx/blob/main/sites/_beispiel.env.example) (Instance settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_configuration["Instance configuration"]
  node_host_settings["Host settings<br/>[host.env.example]"]
  node_instance_settings["Instance settings"]
  node_renderer["Config renderer<br/>[render.sh]"]
  node_nginx_templates["nginx templates"]
end

subgraph group_proxy["HTTPS proxy"]
  node_rendered_config["Generated config<br/>[conf.d]"]
  node_compose["Container runtime<br/>[compose.yaml]"]
  node_nginx["nginx proxy<br/>[nginx.conf]"]
end

subgraph group_certificates["Certificate lifecycle"]
  node_issuer["Certificate issuer<br/>[cert-issue.sh]"]
  node_renewal["Certificate renewal<br/>[renew.sh]"]
  node_certificate_store[("Certificate data")]
end

subgraph group_operations["Host operations"]
  node_check_timer["Check timer"]
  node_check_service["Check service"]
  node_cert_check["Certificate and app check<br/>[cert-check.sh]"]
  node_renew_timer["Renewal timer"]
  node_renew_service["Renewal service"]
  node_status_mail["Status mail<br/>[status-mail.sh]"]
  node_installer["Host installer<br/>[install.sh]"]
end

node_operator(("Host operator"))
node_internet(("Internet clients"))
node_jboss["JBoss backend"]

node_operator -->|"sets host values"| node_host_settings
node_operator -->|"sets instance values"| node_instance_settings
node_host_settings -->|"configures"| node_renderer
node_instance_settings -->|"configures"| node_renderer
node_renderer -->|"renders from"| node_nginx_templates
node_renderer -->|"generates"| node_rendered_config
node_renderer -->|"reloads proxy"| node_compose
node_compose -->|"runs"| node_nginx
node_nginx -->|"uses"| node_rendered_config
node_internet -->|"sends HTTPS"| node_nginx
node_nginx -->|"forwards HTTP"| node_jboss
node_operator -->|"requests certificate"| node_issuer
node_issuer -->|"obtains certificate"| node_certificate_store
node_certificate_store -->|"enables TLS config"| node_nginx
node_renew_timer -->|"starts"| node_renew_service
node_renew_service -->|"runs"| node_renewal
node_renewal -->|"renews"| node_certificate_store
node_check_timer -->|"starts"| node_check_service
node_check_service -->|"runs"| node_cert_check
node_operator -->|"installs host services"| node_installer
node_cert_check -->|"reports failures"| node_status_mail

click node_host_settings "https://github.com/abulsdl/dgr_nginx/blob/main/host.env.example"
click node_instance_settings "https://github.com/abulsdl/dgr_nginx/blob/main/sites/_beispiel.env.example"
click node_renderer "https://github.com/abulsdl/dgr_nginx/blob/main/scripts/render.sh"
click node_nginx_templates "https://github.com/abulsdl/dgr_nginx/tree/main/nginx/templates"
click node_rendered_config "https://github.com/abulsdl/dgr_nginx/tree/main/nginx/conf.d"
click node_compose "https://github.com/abulsdl/dgr_nginx/blob/main/compose.yaml"
click node_nginx "https://github.com/abulsdl/dgr_nginx/blob/main/nginx/nginx.conf"
click node_issuer "https://github.com/abulsdl/dgr_nginx/blob/main/scripts/cert-issue.sh"
click node_renewal "https://github.com/abulsdl/dgr_nginx/blob/main/scripts/renew.sh"
click node_check_timer "https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-check.timer"
click node_check_service "https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-check.service"
click node_cert_check "https://github.com/abulsdl/dgr_nginx/blob/main/scripts/cert-check.sh"
click node_renew_timer "https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-renew.timer"
click node_renew_service "https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-renew.service"
click node_status_mail "https://github.com/abulsdl/dgr_nginx/blob/main/scripts/status-mail.sh"
click node_installer "https://github.com/abulsdl/dgr_nginx/blob/main/scripts/install.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_host_settings,node_instance_settings,node_renderer,node_nginx_templates,node_internet toneBlue
class node_rendered_config,node_compose,node_nginx toneAmber
class node_issuer,node_renewal,node_certificate_store toneMint
class node_check_timer,node_check_service,node_cert_check,node_renew_timer,node_renew_service,node_status_mail,node_installer toneRose
class node_operator,node_jboss toneIndigo
```

## Components

### Instance configuration

- [Host settings](https://github.com/abulsdl/dgr_nginx/blob/main/host.env.example): `host.env.example`
- [Instance settings](https://github.com/abulsdl/dgr_nginx/blob/main/sites/_beispiel.env.example): `sites/_beispiel.env.example`
- [Config renderer](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/render.sh): `scripts/render.sh`
- [nginx templates](https://github.com/abulsdl/dgr_nginx/tree/main/nginx/templates): `nginx/templates`

### HTTPS proxy

- [Generated config](https://github.com/abulsdl/dgr_nginx/tree/main/nginx/conf.d): `nginx/conf.d`
- [Container runtime](https://github.com/abulsdl/dgr_nginx/blob/main/compose.yaml): `compose.yaml`
- [nginx proxy](https://github.com/abulsdl/dgr_nginx/blob/main/nginx/nginx.conf): `nginx/nginx.conf`

### Certificate lifecycle

- [Certificate issuer](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/cert-issue.sh): `scripts/cert-issue.sh`
- [Certificate renewal](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/renew.sh): `scripts/renew.sh`
- **Certificate data**

### Host operations

- [Check timer](https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-check.timer): `systemd/profineo-check.timer`
- [Check service](https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-check.service): `systemd/profineo-check.service`
- [Certificate and app check](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/cert-check.sh): `scripts/cert-check.sh`
- [Renewal timer](https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-renew.timer): `systemd/profineo-renew.timer`
- [Renewal service](https://github.com/abulsdl/dgr_nginx/blob/main/systemd/profineo-renew.service): `systemd/profineo-renew.service`
- [Status mail](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/status-mail.sh): `scripts/status-mail.sh`
- [Host installer](https://github.com/abulsdl/dgr_nginx/blob/main/scripts/install.sh): `scripts/install.sh`

### Other components

- **Host operator**
- **Internet clients**
- **JBoss backend**

## Connections

- Host operator → Host settings: sets host values (evidence: `README.md`)
- Host operator → Instance settings: sets instance values (evidence: `README.md`)
- Host settings → Config renderer: configures (evidence: `README.md`)
- Instance settings → Config renderer: configures (evidence: `README.md`)
- Config renderer → nginx templates: renders from (evidence: `README.md`)
- Config renderer → Generated config: generates (evidence: `README.md`)
- Config renderer → Container runtime: reloads proxy (evidence: `README.md`)
- Container runtime → nginx proxy: runs (evidence: `README.md`)
- nginx proxy → Generated config: uses (evidence: `README.md`)
- Internet clients → nginx proxy: sends HTTPS (evidence: `README.md`)
- nginx proxy → JBoss backend: forwards HTTP (evidence: `README.md`)
- Host operator → Certificate issuer: requests certificate (evidence: `README.md`)
- Certificate issuer → Certificate data: obtains certificate (evidence: `README.md`)
- Certificate data → nginx proxy: enables TLS config (evidence: `README.md`)
- Renewal timer → Renewal service: starts (evidence: `README.md`)
- Renewal service → Certificate renewal: runs (evidence: `README.md`)
- Certificate renewal → Certificate data: renews (evidence: `README.md`)
- Check timer → Check service: starts (evidence: `README.md`)
- Check service → Certificate and app check: runs (evidence: `README.md`)
- Host operator → Host installer: installs host services (evidence: `README.md`)
- Certificate and app check → Status mail: reports failures (evidence: `README.md`)
