iris websocket 发表于 2024-04-12 | 更新于 2024-09-02 | 分类于 Go 本文字数: 3.4k | 阅读时长 ≈ 3 分钟 思考并回答以下问题: Nginx12345678910111213141516171819202122232425262728293031323334server { listen 443 ssl; server_name lessonsocket.zhiyajob.com; ssl_certificate /apps/srv/cret/8019396_lessonsocket.zhiyajob.com.pem; ssl_certificate_key /apps/srv/cret/8019396_lessonsocket.zhiyajob.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; charset utf-8; location /(css|js|fonts|img)/ { access_log off; expires 1d; try_files $uri @backend; } location ~ .*\.(jpg|xlsx)$ { root "/Users/mac/go/src/carPortNew"; } location / { try_files /_not_exists_ @backend; } location @backend { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header Upgrade websocket; proxy_set_header Connection upgrade; proxy_pass http://127.0.0.1:8083; }}