erictik / midjourney-ui

Midjourney UI is an open source AI painting UI based on Midjourney
https://midjourney-ui.vercel.app
Apache License 2.0
343 stars 118 forks source link

[feature] cdn.discordapp.com proxy forward user domain #12

Closed CaoYunzhou closed 1 year ago

CaoYunzhou commented 1 year ago

example:

imagine.loading https://cdn.discordapp.com/attachments/1106141066148708422/1106449060593946654/grid_0.webp
imagine.loading https://xxx.xxx.com/attachments/1106141066148708422/1106449060593946654/grid_0.webp

Using the domain name provided by the user for forwarding

zcpua commented 1 year ago

you can use nginx

server
{
    listen       80;
    listen  [::]:80;
    server_name  localhost;
    location /
    {
        proxy_pass https://cdn.discordapp.com;
        proxy_ssl_verify off;
    }
}
china-Charles-yang commented 1 year ago

这个配置,应该是没用的吧

CaoYunzhou commented 1 year ago