安装Nginx Proxy Manager

有了这个软件,你可以快速的配置nginx反向代理(支持websocket,stream转发)

系统环境Ubuntu 20.04 LTS

首先安装安装docker-compose 和docker

curl -fsSL https://get.docker.com -o get-docker.sh&&sh get-docker.sh#安装 docker
apt update
apt install python-is-python3 ###2022年了,还用py2?
apt install python3-pip&&pip install docker-compose

安装

mkdir nginxpm&&cd nginxpm
创建docker-compose.yml,并在其中放入一下内容

version: "3"
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '80:80' # Public HTTP Port
      - '443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP

    # Uncomment the next line if you uncomment anything in the section
    # environment:
      # Uncomment this if you want to change the location of 
      # the SQLite DB file within the container
      # DB_SQLITE_FILE: "/data/database.sqlite"

      # Uncomment this if IPv6 is not enabled on your host
      # DISABLE_IPV6: 'true'

    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

保存后,运行docker-compose up -d ,

默认登录信息

Email:    [email protected]
Password: changeme

启动 更新 停止

在docker-compose.yml所在目录下
docker-compose up -d##启动并在后台运行
docker-compose stop #停止
docker-compose pull #更新
#另副一个Linux 网络优化脚本 wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh##作者neko

参考–https://nginxproxymanager.com/setup/#running-the-app

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇