Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.2 kB
2
Indexable
Never
user                            www;
worker_processes                auto;

error_log                       /var/log/nginx/error.log warn;

events {
    worker_connections          1024;
}

http {
    include                     /etc/nginx/mime.types;
    default_type                application/octet-stream;
    sendfile                    on;
    access_log                  /var/log/nginx/access.log;
    keepalive_timeout           3000;

    # Define the proxy server
    upstream devopsgrowthtesttask {
        server devopsgrowthtesttasksa.blob.core.windows.net:443;
    }

    server {
        listen                  443 ssl;
        server_name             localhost;

        ssl_certificate         /etc/ssl/certs/nginx-selfsigned.crt;
        ssl_certificate_key     /etc/ssl/private/nginx-selfsigned.key;

        location / {
            proxy_pass          https://devopsgrowthtesttask/devopsgrowthtesttaskblob/index.html;
            proxy_set_header    Host devopsgrowthtesttasksa.blob.core.windows.net;
            proxy_set_header    X-Real-IP $remote_addr;
            proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header    X-Forwarded-Proto $scheme;
        }
    }
}