Giter Site home page Giter Site logo

Comments (6)

Zo3i avatar Zo3i commented on June 24, 2024

https://media.discordapp.net/attachments/1093565789782675476/1107884228399607878/landing_airplane_0423a88b-7343-40b7-81bf-772c42b54df5.png?width=968&height=968

https://img.zxx.im/attachments/1093565789782675476/1107884228399607878/landing_airplane_0423a88b-7343-40b7-81bf-772c42b54df5.png?width=968&height=968

这是反向代理之后的地址。

server {
listen 80;
server_name img.zxx.im;

    #开启和关闭gzip模式
    gzip on;
    #gizp压缩起点,文件大于1k才进行压缩
    gzip_min_length 1k;
    # gzip 压缩级别,1-9,数字越大压缩的越好,也越占用CPU时间
    gzip_comp_level 1;
    # 进行压缩的文件类型。
    gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript ;
    #nginx对于静态文件的处理模块,开启后会寻找以.gz结尾的文件,直接返回,不会占用cpu进行压缩,如果找不到则不进行压缩
    gzip_static on;
    # 是否在http header中添加Vary: Accept-Encoding,建议开启
    gzip_vary on;
    # 设置压缩所需要的缓冲区大小,以4k为单位,如果文件为7k则申请2*4k的缓冲区
    gzip_buffers 2 4k;
    # 设置gzip压缩针对的HTTP协议版本
    gzip_http_version 1.1;

    charset utf-8;
    error_page   500 502 503 504  /50x.html;

    location / {
        proxy_pass https://cdn.discordapp.com/;
    }
}

这是nginx配置,你照这个设置就行

from chatgptwithmidjourney.

harochen75 avatar harochen75 commented on June 24, 2024

还是不行。 可能是因为我的是http的地址。 反向代理的是https。 试了增加proxy_redirect https:// http://; 还是访问不了

from chatgptwithmidjourney.

Zo3i avatar Zo3i commented on June 24, 2024

建议使用https

from chatgptwithmidjourney.

harochen75 avatar harochen75 commented on June 24, 2024

已经可以

from chatgptwithmidjourney.

pengboooo avatar pengboooo commented on June 24, 2024

你是如何解决的呀?我页遇到这样的问题了

from chatgptwithmidjourney.

Zo3i avatar Zo3i commented on June 24, 2024

已经写的很清楚了。你遇到什么问题要具体说清楚。报错截图出来

from chatgptwithmidjourney.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.