<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### Web配置 需創建擴展目錄 ```shell mkdir -p /usr/local/nginx/conf/extra ``` #### 主配置文件 nginx.conf ```shell user nginx nginx; # 設置所有worker進程可以打開的最大文件句柄數 worker_rlimit_nofile 65535; worker_processes auto; worker_cpu_affinity auto; events { # 讓多個worker進程輪詢相應新請求 accept_mutex on; # 限制每個worker進程的并發連接數 worker_connections 10240; use epoll; } http { include mime.types; default_type application/octet-stream; # 開啟高效文件傳輸模式 sendfile on; tcp_nodelay on; tcp_nopush on; # 設置客戶端連接保持會話的超時時間 keepalive_timeout 10; # 設置客戶端請求頭讀取超時時間 client_header_timeout 15; # 設置客戶端請求主體讀取超時時間 client_body_timeout 15; # 指定響應客戶端的超時時間 send_timeout 15; # 設置最大的容許的客戶端請求主體大小 client_max_body_size 10M; # 將http請求響應頭里的nginx版本號信息隱藏 server_tokens off; # 開啟壓縮 gzip on; # 設置容許壓縮的頁面最小字節數 gzip_min_length 1k; # 申請4個單位為32K的內存作為壓縮結果流緩存 gzip_buffers 4 32k; # 壓縮的版本 gzip_http_version 1.1; # 由于IE6對Gzip壓縮效果不好,建議在IE6的環境下關閉壓縮功能 gzip_disable "MSIE[1-6]"; # 壓縮比率 gzip_comp_level 3; # 指定壓縮的類型 gzip_types text/plain text/css text/xml application/javascript application/x-javascript; # 設置從web服務器傳給緩存服務器的時候不被解壓。只有傳送到用戶后才解壓縮 gzip_vary on; # 設置為Json格式,方便ELK日志分析軟件處理 log_format json_main '{"@timestamp":"$time_iso8601",' '"remote_addr":"$server_addr",' '"remote_user":"$remote_user",' '"request_time":"$request_time",' '"request":"$request",' '"body_bytes_sent":"$body_bytes_sent",' '"request_method":"$request_method",' '"upstream_response_time":"$upstream_response_time",' '"upstream_addr":"$upstream_addr",' '"url":"$uri",' '"http_x_forwarded_for":"$http_x_forwarded_for",' '"http_referrer":"$http_referer",' '"status":"$status"}'; access_log logs/access.log json_main; error_log logs/error.log error; include extra/*.conf ; } ``` #### 擴展配置文件(便于管理) www.conf ```shell server { listen 8000; server_name www.noteshare.cn; root /data/noteshare/; set_real_ip_from 10.0.0.0/16; set_real_ip_from 192.168.0.0/16; real_ip_header X-Forwarded-For; real_ip_recursive on; location / { index index.html; } # 設置資源緩存時間 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 3650d; } # 設置資源緩存時間 location ~ .*\.(js|css)?$ { expires 30d; } # 設置狀態頁訪問信息 location /ngx_status { stub_status on; access_log off; allow 192.168.0.0/16; deny all; } access_log logs/lego_access.log json_main; } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看