All languages

Docker

You're viewing a free preview. Sign in free to read every script.

Why this exists An application container should not face the internet directly. A reverse proxy in front does the jobs the application should not do itself: terminating TLS, redirecting HTTP to HTTPS, adding security…

Compose Behind a TLS Reverse Proxy: nginx, HTTPS, Security Headers and Network Isolation

An nginx reverse proxy in front of an API and database with HTTP-to-HTTPS redirect, TLS, security headers and two networks so the database is unreachable from the proxy and the internet, all proven with real requests, plus certificate rotation with a zero-downtime reload.

Sign in free to read this script, along with the rest of the library.

Sign in free