本帖最后由 快乐快乐的 于 2024-6-23 15:40 编辑
http的配置:
- server {
- listen 80;
- server_name test.fdsfds.com;
-
- large_client_header_buffers 4 16k;
- client_max_body_size 30m;
- client_body_buffer_size 128k;
-
- proxy_connect_timeout 300;
- proxy_read_timeout 300;
- proxy_send_timeout 300;
- proxy_buffer_size 64k;
- proxy_buffers 4 32k;
- proxy_busy_buffers_size 64k;
- proxy_temp_file_write_size 64k;
-
- location / {
- proxy_pass http://206.22.33.11:8080;
- index index.html index.htm;
- }
-
- }
复制代码
https的配置:
- server {
- listen 443 ssl;
- server_name test.fdsfds.com;
-
- ssl_certificate cert/46162.pem;
- ssl_certificate_key cert/46162.key;
- ssl_session_timeout 5m;
- ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
-
- large_client_header_buffers 4 16k;
- client_max_body_size 30m;
- client_body_buffer_size 128k;
-
- proxy_connect_timeout 300;
- proxy_read_timeout 300;
- proxy_send_timeout 300;
- proxy_buffer_size 64k;
- proxy_buffers 4 32k;
- proxy_busy_buffers_size 64k;
- proxy_temp_file_write_size 64k;
-
- location / {
- proxy_pass http://206.22.33.11:8080;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
- proxy_set_header X-Real-IP $remote_addr;
- index index.html index.htm;
- }
- }
复制代码
|