donnykurnia icon

nginx-proxy config result sample

donnykurnia | PRO | 12/30/20 06:16:43 AM UTC | 0 ⭐ | 9962 👁️ | Never ⏰ | []
Nginx |

680 B

|

None

|

0 👍

/

0 👎

# whoami.local
upstream whoami.local {
                                ## Can be connected with "nginx-proxy_default" network
                        # nginx-proxy_whoami_1
                        server 172.18.0.4:8000;
}
server {
        server_name whoami.local;
        listen 80 ;
        access_log /var/log/nginx/access.log vhost;
        location / {
                proxy_pass http://whoami.local;
        }
}
server {
        server_name whoami.local;
        listen 443 ssl http2 ;
        access_log /var/log/nginx/access.log vhost;
        return 500;
        ssl_certificate /etc/nginx/certs/default.crt;
        ssl_certificate_key /etc/nginx/certs/default.key;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎