nginx docker

nginx域名配置demo,配置文件放在目录/etc/nginx/conf.d/中。

server {
    listen 80;
    listen       443 ssl;
    server_name  liukun.site;

    ssl_certificate      conf.d/cert/liukun.site.crt;
    ssl_certificate_key  conf.d/cert/liukun.site.key;

    ssl_session_cache    shared:SSL:1m;
    ssl_session_timeout  5m;

    ssl_ciphers  HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers  on;

    if ($scheme = http) {
        return 301 https://$server_name$request_uri;
    }

    location / {
        proxy_pass http://liukunsite:8080;
    }
}

你可能感兴趣的:(nginx docker)