12345678910111213141516171819202122232425262728 |
- server {
- listen 443 ssl http2;
- server_name chat.zhile.io;
-
- charset utf-8;
-
- ssl_certificate certs/chat.zhile.io.crt;
- ssl_certificate_key certs/chat.zhile.io.key;
- location / {
- proxy_http_version 1.1;
- proxy_pass http://127.0.0.1:8181/;
- proxy_set_header Connection "";
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-
- proxy_buffering off;
- proxy_cache off;
-
- send_timeout 600;
- proxy_connect_timeout 600;
- proxy_send_timeout 600;
- proxy_read_timeout 600;
- }
- }
|