DeveloperBreeze

Https Development Tutorials, Guides & Insights

Unlock 6+ expert-curated https tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your https skills on DeveloperBreeze.

Tutorial
bash

How to Install and Configure Apache on Ubuntu

sudo apt install apache2

Once the installation is complete, Apache will automatically start. You can verify if it's running with:

Oct 21, 2024
Read More
Tutorial
bash

How to Create SSL for a Website on Ubuntu

ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384";
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
ssl_stapling on;
ssl_stapling_verify on;

Save the file and restart Nginx:

Oct 21, 2024
Read More
Article
bash

Top 25 Nginx Web Server Best Security Practices

if ($request_method !~ ^(GET|POST)$ ) {
    return 405;
}

Use additional HTTP headers to protect your website from common vulnerabilities like XSS and Clickjacking.

Sep 24, 2024
Read More
Tutorial
json bash

Building Progressive Web Apps (PWAs) with Modern APIs

To test your PWA, you need to serve it over HTTPS. You can use a local development server with HTTPS support, such as http-server:

npm install -g http-server
http-server -S -C cert.pem -K key.pem

Aug 05, 2024
Read More
Tutorial
python bash

Deploying a Flask Application on a VPS Using Gunicorn and Nginx

Paste the following:

# HTTP to HTTPS redirection
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name developerbreeze.com www.developerbreeze.com;

    return 301 https://developerbreeze.com$request_uri;
}

# HTTPS Server Block
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name developerbreeze.com www.developerbreeze.com;

    ssl_certificate /etc/letsencrypt/live/developerbreeze.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/developerbreeze.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    root /path/to/your-flask-app;
    index index.html;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    location / {
        include proxy_params;
        proxy_pass http://unix:/path/to/your-flask-app/developerbreeze.sock;
    }

    location /static {
        alias /path/to/your-flask-app/static;
    }

    location /favicon.ico {
        alias /path/to/your-flask-app/static/favicon.ico;
    }

    location ~ /.well-known {
        allow all;
    }
}

Aug 03, 2024
Read More