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

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity 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