Skip to content

Instantly share code, notes, and snippets.

View Keksinautin's full-sized avatar

Ivan Evsikov Keksinautin

  • Product Science
  • London
  • 19:45 (UTC +01:00)
  • LinkedIn in/evsikov
View GitHub Profile
@Keksinautin
Keksinautin / nginx.conf
Created August 28, 2018 21:07 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;