docker中使用nginx容器代理其他容器

docker中使用nginx容器代理其他容器

server {
    #listen 443;
    listen 80;
   server_name blog.kelvv.com
    #ssl on;
    access_log /var/log/nginx/api-dev.log;
    error_log /var/log/nginx/api-dev.error.log;
    location / {
        proxy_pass      http://ghost:2368;
        proxy_set_header    Host $host;
        proxy_set_header    X-Real-IP $remote_addr;
        proxy_set_header    X-Forwarded-Proto https;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_connect_timeout   150;
        proxy_send_timeout  100;
        proxy_read_timeout  100;
        proxy_buffers       4 32k;
        client_max_body_size    8m;
        client_body_buffer_size 128;    
    }
}

你可能感兴趣的:(experience)