{% extends "base.html" %} {% block title %}HTTPS Configuration - DigiServer v2{% endblock %} {% block content %}

Current Status

🔍 Detected Connection: {% if is_https_active %} 🔒 HTTPS ({{ request.scheme.upper() }}) {% else %} 🔓 HTTP {% endif %}
Current host: {{ current_host }} via {{ request.host }}

{% if config and config.https_enabled %}
✅ HTTPS ENABLED

Domain: {{ config.domain }}

Hostname: {{ config.hostname }}

Email: {{ config.email }}

IP Address: {{ config.ip_address }}

Port: {{ config.port }}

Access URL: https://{{ config.domain }}

Last Updated: {{ config.updated_at.strftime('%Y-%m-%d %H:%M:%S') }} by {{ config.updated_by }}

{% else %}
âš ī¸ HTTPS DISABLED {% if is_https_active %}

✅ Note: You are currently accessing this page via HTTPS, but the configuration shows as disabled. This configuration will be automatically updated. Please refresh the page.

{% else %}

The application is currently running on HTTP only (port 80)

Enable HTTPS below to secure your application.

{% endif %}
{% endif %}

Configure HTTPS Settings

💡 Workflow: First, the app runs on HTTP (port 80). After you configure the HTTPS settings below, the application will be available over HTTPS (port 443) using the domain and hostname you specify.

Check this box to enable HTTPS/SSL for your application

Short name for your server (e.g., 'digiserver')

Complete domain name (e.g., digiserver.sibiusb.harting.intra)

Server's IP address for direct access (e.g., 10.76.152.164)

Email address for SSL certificate notifications and Let's Encrypt communications

Port for HTTPS connections (default: 443)

Access Points After Configuration:

  • HTTPS (Recommended): https://digiserver.sibiusb.harting.intra
  • HTTP (Fallback): http://10.76.152.164
Cancel

🔧 Nginx Reverse Proxy Status

{% if nginx_status.available %}
Status: ✅ Nginx Configured
Configuration Path: {{ nginx_status.path }}
{% if nginx_status.ssl_enabled %}
SSL/TLS: 🔒 Enabled
{% else %}
SSL/TLS: âš ī¸ Not Configured
{% endif %} {% if nginx_status.http_ports %}
HTTP Ports: {{ nginx_status.http_ports|join(', ') }}
{% endif %} {% if nginx_status.https_ports %}
HTTPS Ports: {{ nginx_status.https_ports|join(', ') }}
{% endif %} {% if nginx_status.server_names %}
Server Names: {% for name in nginx_status.server_names %} {{ name }}{% if not loop.last %}
{% endif %} {% endfor %}
{% endif %} {% if nginx_status.upstream_servers %}
Upstream Servers: {% for server in nginx_status.upstream_servers %} {{ server }}{% if not loop.last %}
{% endif %} {% endfor %}
{% endif %} {% if nginx_status.ssl_protocols %}
SSL Protocols: {{ nginx_status.ssl_protocols|join(', ') }}
{% endif %} {% if nginx_status.client_max_body_size %}
Max Body Size: {{ nginx_status.client_max_body_size }}
{% endif %} {% if nginx_status.gzip_enabled %}
Gzip Compression: ✅ Enabled
{% endif %}
{% else %}

âš ī¸ Nginx configuration not accessible

Error: {{ nginx_status.error|default('Unknown error') }}

Path checked: {{ nginx_status.path }}

{% endif %}

â„šī¸ Important Information

📝 Before You Start

  • Ensure your DNS is configured to resolve the domain to your server
  • Verify the IP address matches your server's actual network interface
  • Check that ports 80, 443, and 443/UDP are open for traffic

🔐 HTTPS Setup

  • SSL certificates are automatically managed by Caddy
  • Certificates are obtained from Let's Encrypt
  • Automatic renewal is handled by the system

✅ After Configuration

  • Your app will restart with the new settings
  • Both HTTP and HTTPS access points will be available
  • HTTP requests will be redirected to HTTPS
  • Check the status above for current configuration
{% endblock %}