nginx转发

https://github.com/branchzero/yapi-docker


mkdir -p /www/yapi

cd /www && git clone https://github.com/branchzero/yapi-docker.git yapi

chmod -R 777 /www/yapi

docker-compose up -d

访问 http://192.168.33.70:3000


可在nginx配置下面的域名 后通过域名访问
server {
    listen     80;
    server_name your.domain;
    keepalive_timeout   70;

    location / {
        proxy_pass http://192.168.33.70:3000;
    }
    location ~ /\. {
        deny all;
    }
}

  

posted @ 2019-10-18 11:11  brady-wang  阅读(228)  评论(0编辑  收藏  举报