Jump to content


Recommended Posts


docker network create hyx

2、反向代理软件选择是linuxserver/swag    network type:custom:hyx,用于代理其实docker


3、因另外一个docker:linuxserver/nginx需要固定IP,用于内外网使用,所以网络为network type:custom:bro   Fixed IP address :,Q2.thumb.png.53232b86cd1f64cefb57f91bf8327994.png


server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name mb.xxxx.xxx;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        resolver valid=30s;
        set $upstream_app;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

4、输入192.168.16.88正常运行,输入外网地址不能运行,显示为:502 Bad Gateway


5、linuxserver/nginx为network type:custom:Bridge,并调整*.subdomain.conf文件,连接外网可以正常运行;如果在network type:custom:bro中运行,该如何处理呢?期望解决方法,非常感谢!!!

Edited by husthuyx
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...