Adding front matter summary and keyword field

also lint markdown format
This commit is contained in:
Cristian Ditaputratama 2024-06-05 21:29:08 +07:00
parent 0ec6578581
commit f20101a67c
Signed by: ditatompel
GPG key ID: 31D3D06D77950979
2 changed files with 19 additions and 38 deletions

View file

@ -1,17 +1,16 @@
---
title: "My Nginx Setup Kickstart / Boilerplate"
description: "Settingan wajib saya untuk Nginx sebagai web server, reverse proxy; termasuk VTS module, analisis, dan logging."
# linkTitle:
summary: "Settingan wajib saya untuk Nginx sebagai web server, reverse proxy; termasuk VTS module, analisis, dan logging."
keywords:
- nginx
- nginx kickstart
- nginx boilerplate
date: 2024-04-25T00:00:09+07:00
lastmod:
draft: false
noindex: false
# comments: false
nav_weight: 1000
# nav_icon:
# vendor: bootstrap
# name: toggles
# color: '#e24d0e'
series:
# - Tutorial
categories:
@ -19,16 +18,7 @@ categories:
- Snippets
tags:
- Nginx
# -
images:
# menu:
# main:
# weight: 100
# params:
# icon:
# vendor: bs
# name: book
# color: '#e24d0e'
authors:
- ditatompel
---
@ -67,6 +57,7 @@ Untuk **Debian**:
```shell
apt install sudo curl gnupg2 ca-certificates lsb-release debian-archive-keyring
```
Untuk **Ubuntu**:
```shell
@ -335,7 +326,7 @@ http {
sudo apt install git build-essential libpcre3-dev zlib1g-dev libssl-dev
```
Ini adalah bagian yang sangat penting, jika ingin menggunakan *dynamically linked module*, opsi mengkompile _module_ harus sama dengan Nginx _binary file_ yang akan digunakan, begitu pula dengan versi Nginx yang digunakan. Untuk mengetahui informasi yang kita butuhkan tersebut, jalankan perintah `nginx -V`. Contoh _output_:
Ini adalah bagian yang sangat penting, jika ingin menggunakan _dynamically linked module_, opsi mengkompile _module_ harus sama dengan Nginx _binary file_ yang akan digunakan, begitu pula dengan versi Nginx yang digunakan. Untuk mengetahui informasi yang kita butuhkan tersebut, jalankan perintah `nginx -V`. Contoh _output_:
```plain
nginx version: nginx/1.26.0
@ -437,4 +428,3 @@ Sebagai referensi konfigurasi akhir, silahkan lihat di repositori [https://githu
- [https://github.com/vozlt/nginx-module-vts](https://github.com/vozlt/nginx-module-vts).
- [https://github.com/itsjfx/cloudflare-nginx-ips](https://github.com/itsjfx/cloudflare-nginx-ips).
- [https://github.com/ditatompel/nginx-kickstart](https://github.com/ditatompel/nginx-kickstart).

View file

@ -1,17 +1,16 @@
---
title: "My Nginx Setup Kickstart / Boilerplate"
description: "My mandatory settings for Nginx as a web server, reverse proxy; including VTS module, analysis, and logging."
# linkTitle:
summary: "My mandatory settings for Nginx as a web server, reverse proxy; including VTS module, analysis, and logging."
keywords:
- nginx
- nginx kickstart
- nginx boilerplate
date: 2024-04-25T00:00:09+07:00
lastmod:
draft: false
noindex: false
# comments: false
nav_weight: 1000
# nav_icon:
# vendor: bootstrap
# name: toggles
# color: '#e24d0e'
series:
# - Tutorial
categories:
@ -19,16 +18,7 @@ categories:
- Snippets
tags:
- Nginx
# -
images:
# menu:
# main:
# weight: 100
# params:
# icon:
# vendor: bs
# name: book
# color: '#e24d0e'
authors:
- ditatompel
---
@ -67,6 +57,7 @@ For **Debian**:
```shell
apt install sudo curl gnupg2 ca-certificates lsb-release debian-archive-keyring
```
For **Ubuntu**:
```shell
@ -314,7 +305,7 @@ http {
For me, log centralization really makes my job easier in carrying out server analysis and troubleshooting.
In Nginx, we can easily send logs to _remote servers_ in _real-time_. For example, we can send logs to a remote `rsyslog` server** (UDP) with the following example configuration:
In Nginx, we can easily send logs to _remote servers_ in _real-time_. For example, we can send logs to a remote `rsyslog` server\*\* (UDP) with the following example configuration:
```nginx
http {
@ -335,7 +326,7 @@ http {
sudo apt install git build-essential libpcre3-dev zlib1g-dev libssl-dev
```
This is a very important part, if you want to use a *dynamically linked module*, the compile module option must be the same as the Nginx _binary file_ that will be used, as well as the version of Nginx used. To find out the information we need, run `nginx -V` command. Example output:
This is a very important part, if you want to use a _dynamically linked module_, the compile module option must be the same as the Nginx _binary file_ that will be used, as well as the version of Nginx used. To find out the information we need, run `nginx -V` command. Example output:
```plain
nginx version: nginx/1.26.0
@ -357,6 +348,7 @@ Extract the Nginx _source code_ archive, then go to it's directory:
tar -xvzf nginx-1.26.0.tar.gz
cd nginx-1.26.0
```
Clone the `vozlt/nginx-module-vts` repository and use the [latest release tag](https://github.com/vozlt/nginx-module-vts/tags). When this article was written, the last tag release was `v0.2.2`, so:
```shell
@ -436,4 +428,3 @@ As a final configuration reference, please look at [https://github.com/ditatompe
- [https://github.com/vozlt/nginx-module-vts](https://github.com/vozlt/nginx-module-vts).
- [https://github.com/itsjfx/cloudflare-nginx-ips](https://github.com/itsjfx/cloudflare-nginx-ips).
- [https://github.com/ditatompel/nginx-kickstart](https://github.com/ditatompel/nginx-kickstart).