Skip to content

Instantly share code, notes, and snippets.

View ondrejkralik's full-sized avatar

Ondřej Králík ondrejkralik

  • Stats Perform
  • Czech Republic
  • 03:40 (UTC +02:00)
View GitHub Profile
@ondrejkralik
ondrejkralik / nginx.conf
Created January 25, 2019 23:50 — 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
@ondrejkralik
ondrejkralik / fastcgi.conf
Created January 25, 2019 23:18 — forked from fprochazka/fastcgi.conf
nginx config files
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;