User Guide
Integrations
Web Servers (Nginx/IIS)

Web Server Configuration

To enable HTTPS on your internal services, you need to configure your web server to use the certificates issued by TrustLab.

Prerequisite: Ensure you have downloaded the PEM Bundle (for Linux) or PFX (for Windows) as described in the Download Guide.

Configuration Examples

Select your web server environment below:

Nginx Setup

Target File: /etc/nginx/sites-available/default or internal.app.conf

server {
    listen 80;
    server_name internal.app;
    return 301 https://$host$request_uri;
}
 
server {
    listen 443 ssl http2;
    server_name internal.app;
 
    # SSL Configuration
    ssl_certificate     /etc/ssl/trustlab/internal.app.crt;
    ssl_certificate_key /etc/ssl/trustlab/internal.app.key;
 
    # Recommended Security
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;
}