Skip to content

Instantly share code, notes, and snippets.

View ykocaman's full-sized avatar

ykocaman ykocaman

  • istanbul
View GitHub Profile
CassandraSeed:
environment:
RANCHER_ENABLE: 'true'
RANCHER_SEED_SERVICE: CassandraSeed
CASSANDRA_RACK: 'rack1'
CASSANDRA_DC: aws-us-east
CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
labels:
io.rancher.container.pull_image: always
tty: true
@ykocaman
ykocaman / nginx.conf
Last active August 26, 2016 10:02 — 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/
# config to don't allow the browser to render the page inside an frame or iframe
# and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking
# if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri
# https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
add_header X-Frame-Options SAMEORIGIN;
# when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header,
# to disable content-type sniffing on some browsers.
# https://www.owasp.org/index.php/List_of_useful_HTTP_headers
# currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx