声明

     免费图床仅供分享图片使用,我们保留随时删除图片并举报上传违规图片者的权利

本站运行原理

本站采用Telegra.ph的存储作为后端存储,得益于Telegra.ph的慷慨,所以你的数据安全不依赖于本站的服务,也不建议依赖于本站的服务,你可以通过CF的免费Worker服务自己反代https://telegra.ph/来实现图片的展示,也可以自己购买VPS自己搭建Nginx进行反代。CF Worker反代代码例子请移步到Github查看cfworkertgimg
Nginx反代配置文件如下:

server {
    listen 80;
    server_name nginx.conf.demo.imgurl.me;

    
    location / {
        if ($host != 'nginx.conf.demo.imgurl.me') {
            return 301 https://imgurl.me;
        }
        proxy_pass https://telegra.ph;
        # https://telegra.ph/upload
        proxy_set_header Host nginx.conf.demo.imgurl.me;
        proxy_ssl_server_name on;
        proxy_ssl_name nginx.conf.demo.imgurl.me;
        gzip_proxied any;
        #sed -i "s/cdn.jsdelivr.net/us.getjs.at/g" `grep -rl "cdn.jsdelivr.net" ./`
        #proxy_set_header Host $host;
        #proxy_set_header Host fastly.jsdelivr.net;
        proxy_set_header Referer $http_referer;
        proxy_set_header User-Agent $http_user_agent;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header REMOTE-HOST $remote_addr;
        add_header X-Cache $upstream_cache_status;
        proxy_ignore_headers Set-Cookie Cache-Control expires;
        #proxy_cache jsdelivr;
        #proxy_cache_key $host$uri$is_args$args;
        #proxy_cache_valid 200 365d;
        #expires 365d;
    }

    location /upload {
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
        add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
        if ($request_method = 'OPTIONS') {
            return 204;}
        proxy_pass https://telegra.ph/upload;
    }
    
    location /file {
        proxy_pass https://telegra.ph/file;
    }

    client_max_body_size 5m;
}



server
    {
        listen 443 ssl http2;
        #listen [::]:443 ssl http2;
        server_name nginx.conf.demo.imgurl.me ;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/nginx.conf.demo.imgurl.me/public;

        ssl_certificate /acme.sh/nginx.conf.demo.imgurl.me_ecc/fullchain.cer;
        ssl_certificate_key /acme.sh/nginx.conf.demo.imgurl.me_ecc/nginx.conf.demo.imgurl.me.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
        ssl_prefer_server_ciphers on;
        ssl_ciphers "TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:TLS13-AES-128-CCM-8-SHA256:TLS13-AES-128-CCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
        ssl_session_cache builtin:1000 shared:SSL:10m;
        # openssl dhparam -out /acme.sh/dhparams.pem 2048
        ssl_dhparam /acme.sh/dhparams.pem;

    location / {
        if ($host != 'nginx.conf.demo.imgurl.me') {
            return 301 https://imgurl.me;
        }
        proxy_pass https://telegra.ph;
        # https://telegra.ph/upload
        proxy_set_header Host nginx.conf.demo.imgurl.me;
        proxy_ssl_server_name on;
        proxy_ssl_name nginx.conf.demo.imgurl.me;
        gzip_proxied any;
        #sed -i "s/cdn.jsdelivr.net/us.getjs.at/g" `grep -rl "cdn.jsdelivr.net" ./`
        #proxy_set_header Host $host;
        #proxy_set_header Host fastly.jsdelivr.net;
        proxy_set_header Referer $http_referer;
        proxy_set_header User-Agent $http_user_agent;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header REMOTE-HOST $remote_addr;
        add_header X-Cache $upstream_cache_status;
        proxy_ignore_headers Set-Cookie Cache-Control expires;
        #proxy_cache jsdelivr;
        #proxy_cache_key $host$uri$is_args$args;
        #proxy_cache_valid 200 365d;
        #expires 365d;
    }

    location /upload {
            add_header Access-Control-Allow-Origin *;
            add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
            add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
            if ($request_method = 'OPTIONS') {
                return 204;}
            proxy_pass https://telegra.ph/upload;
    }
    location /file {
                proxy_pass https://telegra.ph/file;
    }

    client_max_body_size 5m;

}
                
            

严禁