惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

灰灰的交易世界

記一次Bark編譯部署過程 (含關鍵詞過濾) – 灰灰的交易世界 如何成神 – 灰灰的交易世界 《不被支配》反PUA指南 – 灰灰的交易世界 錢的千年興衰史 – 灰灰的交易世界 你想從生命中得到什麽? – 灰灰的交易世界 交易最簡單的事 – 灰灰的交易世界 你的決策真的是理性的嗎? – 灰灰的交易世界 正確跟女生聊天的四大核心 – 灰灰的交易世界 project zomboid Linux服務器搭建指南 (Ubuntu/Debian) – 灰灰的交易世界
搭建一個反向代理神器:Nginx Proxy Manager – 灰灰的交易世界
by 灰灰 · 2024-11-19 · via 灰灰的交易世界

Skip to content

Nginx proxy manager 是非常很簡單的反向代理工具,操作非常簡單,更不需要掌握復雜的 Nginx 配置知識,輕松完成反向代理的設置和 SSL 證書的部署。

首先我們服務器需要安裝 Docker 和 Docker-compose

安裝Docker

apt-get install docker.io

查看docker 版本,有顯示出版本號代表安裝成功

docker -v

安装Docker-compose

curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

給予權限

chmod +x /usr/local/bin/docker-compose

創建安裝目錄

sudo -i

mkdir npm

cd npm

nano docker-compose.yml

複制貼上以下代碼:

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'  # 保持默認
      - '81:81'  # 保持默認,左邊的數字也可以改成未被占用的端口
      - '443:443' # 保持默認
    volumes:
      - ./data:/data # 代表數據存放位置,左邊的英文可以更改路徑
      - ./letsencrypt:/etc/letsencrypt  # 代表數據存放位置,左邊的英文可以更改路徑

然後點擊”ctrl + x”後,再按”Y”保存文件,然後輸入:

docker-compose up -d

理論上在瀏覽器輸入 http://ip:81 就可以登入了。

默認登陸用戶名和密碼:

Email: [email protected]
Password: changeme