Skip to content

Instantly share code, notes, and snippets.

View hrmon's full-sized avatar
🤦‍♂️

Hamidreza hrmon

🤦‍♂️
View GitHub Profile
@hrmon
hrmon / nginx.conf
Created July 5, 2018 09:44
Nginx with Let's Encrypt Certificate
# 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.example.com example.com;
return 301 https://$host$request_uri;