Skip to content

Instantly share code, notes, and snippets.

View RihardNovozhilov's full-sized avatar

Rihards Novožilovs RihardNovozhilov

View GitHub Profile
@RihardNovozhilov
RihardNovozhilov / nginx.conf
Created November 11, 2020 18:22 — forked from johngrimes/nginx.conf
Ideal Nginx configuration for JavaScript single-page app
server {
listen 80;
root /usr/share/nginx/html;
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_comp_level 9;
etag on;
location / {
try_files $uri $uri/ /index.html;
}
@RihardNovozhilov
RihardNovozhilov / ssl.rules
Created November 11, 2020 13:20 — forked from konklone/ssl.rules
nginx TLS / SSL configuration options for konklone.com
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email [email protected].
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@RihardNovozhilov
RihardNovozhilov / nginx.conf
Created October 15, 2020 11:29 — 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