JustSong Archive Link About
Projects
Categories
Others

nodejs-proxy.conf

Tag: 配置文件 Posted on 2020-04-09 13:24:26 Edited on 2020-04-09 13:24:57 Views: 138
            """
title: nodejs-proxy.conf
tags: 
- 配置文件
"""
server {
	listen 80;
	server_name _;
	return 301 https://$host$request_uri;
}

server {
	listen 443 ssl http2;
	listen [::]:443 ssl http2;
	server_name iamazing.cn www.iamazing.cn;
	ssl on;
    	ssl_certificate /etc/nginx/cert/1_iamazing.cn_bundle.crt;
    	ssl_certificate_key /etc/nginx/cert/2_iamazing.cn.key;
    	ssl_session_timeout 5m;
    	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    	ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
    	ssl_prefer_server_ciphers on;

	location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
	}
}

        

未经允许,禁止转载,本文源站链接:https://iamazing.cn/