From 5c40b9fdd5de2bd43d59b8941a0c576746f1d725 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Fri, 26 Apr 2024 22:32:08 +0700 Subject: [PATCH] Rename `ssl` dir to `certs` --- .../my-nginx-kickstart-boilerplate/index.id.md | 10 +++++----- .../tutorials/my-nginx-kickstart-boilerplate/index.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/content/tutorials/my-nginx-kickstart-boilerplate/index.id.md b/content/tutorials/my-nginx-kickstart-boilerplate/index.id.md index f57fe5b..0408a2b 100644 --- a/content/tutorials/my-nginx-kickstart-boilerplate/index.id.md +++ b/content/tutorials/my-nginx-kickstart-boilerplate/index.id.md @@ -121,25 +121,25 @@ http { ## Mempersiapkan struktur direktori Nginx -Buat direktori `sites-available`, `sites-enabled`, `ssl`, `snippets` di dalam direktori `/etc/nginx` dengan menjalankan perintah: +Buat direktori `sites-available`, `sites-enabled`, `certs`, `snippets` di dalam direktori `/etc/nginx` dengan menjalankan perintah: ```shell -sudo mkdir -p /etc/nginx/{sites-available,sites-enabled,ssl,snippets} +sudo mkdir -p /etc/nginx/{sites-available,sites-enabled,certs,snippets} ``` Buat _self-signed certificate_ (hanya digunakan sebagai konfigurasi awal yang nantinya digantikan oleh `certbot`): ```shell sudo openssl req -x509 -newkey rsa:4096 -days 365 -nodes \ - -keyout /etc/nginx/ssl/privkey.pem \ - -out /etc/nginx/ssl/fullchain.pem \ + -keyout /etc/nginx/certs/privkey.pem \ + -out /etc/nginx/certs/fullchain.pem \ -subj '/CN=example.local/O=My Organization/C=US' ``` Buat _DH-param_ dengan menjalankan perintah: ```shell -sudo openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 +sudo openssl dhparam -out /etc/nginx/certs/dhparam.pem 2048 ``` ## Cloudflare IP Trusted Proxy diff --git a/content/tutorials/my-nginx-kickstart-boilerplate/index.md b/content/tutorials/my-nginx-kickstart-boilerplate/index.md index cce6695..d53257b 100644 --- a/content/tutorials/my-nginx-kickstart-boilerplate/index.md +++ b/content/tutorials/my-nginx-kickstart-boilerplate/index.md @@ -121,25 +121,25 @@ http { ## Preparing the Nginx directory structure -Create the `sites-available`, `sites-enabled`, `ssl`, `snippets` directories inside the `/etc/nginx` directory: +Create the `sites-available`, `sites-enabled`, `certs`, `snippets` directories inside the `/etc/nginx` directory: ```shell -sudo mkdir -p /etc/nginx/{sites-available,sites-enabled,ssl,snippets} +sudo mkdir -p /etc/nginx/{sites-available,sites-enabled,certs,snippets} ``` Create a _self-signed_ certificate (only used as an initial configuration which will later be replaced by `certbot`): ```shell sudo openssl req -x509 -newkey rsa:4096 -days 365 -nodes \ - -keyout /etc/nginx/ssl/privkey.pem \ - -out /etc/nginx/ssl/fullchain.pem \ + -keyout /etc/nginx/certs/privkey.pem \ + -out /etc/nginx/certs/fullchain.pem \ -subj '/CN=example.local/O=My Organization/C=US' ``` Create _DH-param_ by running: ```shell -sudo openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 +sudo openssl dhparam -out /etc/nginx/certs/dhparam.pem 2048 ``` ## Cloudflare's IPs trusted proxy