server { listen 80; server_name _; return 301 https://$host$request_uri; } server { listen 443 ssl http2; server_name _; ssl on; ssl_certificate /etc/ssl/cert.crt; ssl_certificate_key /etc/ssl/cert.pem; location / { proxy_pass http://docreader:8080; ## Conatiner installation ## proxy_pass http://localhost:8080; ##Linux installation } add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; add_header Cache-Control "no-cache, no-store, must-revalidate"; }