How to secure Web application headers with Nginx.

Have you ever wondered how your website/application headers are?
A good step to start is to scan the website:

https://securityheaders.com

After the scan, you can asses the problems. I will explain how to resolve those issues with “Nginx”. If you don’t have HTTPS it’s a good start to use letsencrypt, it’s free and CloudFlare it has a very good support for both.

Add a new configuration section in nginx http:

Best to add a file like security.conf in /etc/nginx/conf.d which can be modified later on.

Test nginx configuration & reload!

Check
https://securityheaders.com & test again…

NB: Be careful with Content-Security-Policy, this needs to be modified depends on your site and dependencies.

Is security headers enough? That’s a NO… using CloudFlare & Nginx security its an abstract layer over the web application which needs to be scanned and improved periodically to keep it secured.


How to install Jenkins Continuous Integration on CentOS 6 as service

Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle. Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat.

In this tutorial we will install Jenkins on Centos 6

Read more