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

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

〈搭建一個反向代理神器:Nginx Proxy Manager〉的留言

暂无文章

搭建一個反向代理神器:Nginx Proxy Manager – 灰灰的交易世界
by 灰灰 · 2024-11-19 · via 〈搭建一個反向代理神器:Nginx Proxy Manager〉的留言

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