New paste Use cases Explore public pastes Text tools Developer API The Paste Library Security Sign in with Google
NGINXExample pasteCreated 2026-07-301 viewNo expiry

Nginx reverse proxy with security headers

Raw New paste
nginxRead-only
1
server {
    listen 443 ssl http2;
    server_name example.test;

    location /api/ {
        proxy_pass http://127.0.0.1:8080/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Request-ID $request_id;
    }

    add_header X-Content-Type-Options nosniff always;
    add_header Referrer-Policy strict-origin-when-cross-origin always;
}
Report abuse

Paste details

Visibility
Public
Size
403 bytes
Protection
Standard link access
Retention
No automatic expiry

Share with confidence

Unlisted links are not searchable, but anyone with the URL can open them. Never paste live credentials or personal data.