差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
tech:alpine_nginx [2022/02/04 22:22] – 建立 jonathantech:alpine_nginx [2023/06/28 13:56] (目前版本) jonathan
行 1: 行 1:
 ====== Alpine 安裝 Nginx 當 Web Proxy ====== ====== Alpine 安裝 Nginx 當 Web Proxy ======
 +<note tip>
 +\\
 +**建議改用 [[tech/nginx_proxy_manager|Nginx Proxy Manager]] 來替代** \\
 +\\
 +</note>
 +
   * 安裝環境 :    * 安裝環境 : 
     * 使用 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:
 } }
 </file> </file>
 +  * 安裝 Let's Encrypt bot <cli> 
 +apk add certbot certbot-nginx 
 +apk add python3 python3-dev py3-pip build-base libressl-dev musl-dev libffi-dev rust cargo 
 +</cli> 
 +  * 將 Web Proxy 設定檔放入 /etc/nginx/http.d/ 內 
 +  * 設定啟動 nginx <cli> 
 +rc-service nginx start 
 +rc-update add nginx 
 +</cli>
  
 ===== 參考網址 ===== ===== 參考網址 =====
   * https://www.cyberciti.biz/faq/how-to-install-nginx-web-server-on-alpine-linux/   * https://www.cyberciti.biz/faq/how-to-install-nginx-web-server-on-alpine-linux/
   * https://www.ichiayi.com/tech/nginx_proxy_real_ip   * https://www.ichiayi.com/tech/nginx_proxy_real_ip
 +  * https://geko.cloud/en/nginx-letsencrypt-certbot-docker-alpine/
  
 {{tag>alpine nginx revers-proxy}} {{tag>alpine nginx revers-proxy}}
  
  • tech/alpine_nginx.1643984533.txt.gz
  • 上一次變更: 2022/02/04 22:22
  • jonathan