差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:alpine_nginx [2022/02/04 22:22] – 建立 jonathan | tech:alpine_nginx [2023/06/28 13:56] (目前版本) – jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Alpine 安裝 Nginx 當 Web Proxy ====== | ====== Alpine 安裝 Nginx 當 Web Proxy ====== | ||
+ | <note tip> | ||
+ | \\ | ||
+ | **建議改用 [[tech/ | ||
+ | \\ | ||
+ | </ | ||
+ | |||
* 安裝環境 : | * 安裝環境 : | ||
* 使用 PVE 7 的 CT Template - alpine-3.15-default_20211202_amd64.tar.xz | * 使用 PVE 7 的 CT Template - alpine-3.15-default_20211202_amd64.tar.xz | ||
行 24: | 行 30: | ||
} | } | ||
</ | </ | ||
+ | * 安裝 Let's Encrypt bot < | ||
+ | apk add certbot certbot-nginx | ||
+ | apk add python3 python3-dev py3-pip build-base libressl-dev musl-dev libffi-dev rust cargo | ||
+ | </ | ||
+ | * 將 Web Proxy 設定檔放入 / | ||
+ | * 設定啟動 nginx < | ||
+ | rc-service nginx start | ||
+ | rc-update add nginx | ||
+ | </ | ||
===== 參考網址 ===== | ===== 參考網址 ===== | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
{{tag> | {{tag> | ||