Skip to content

Instantly share code, notes, and snippets.

@knnhcn
knnhcn / .htaccess
Created March 9, 2019 08:04 — forked from julianpoemp/.angular-htaccess.md
Optimal .htaccess configuration for an Angular 7, Angular 6, Angular 5 (and older app) in production.
# INSTRUCTION:
# There are two options for the redirection:
# Option 1) (default): Your app is directly on the root of the domain.
# Option 2): Your app is placed in a subfolder from the root of the domain.
#
# If you have issues with browser caching you can uncomment the BROWSER CACHING part
# For new versions of this Gist go to:
# https://gist.github.com/julianpoemp/bcf277cb56d2420cc53ec630a04a3566
@knnhcn
knnhcn / nginx.conf
Created September 18, 2018 19:24 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048