https://github.com/bddjr/eureka-cc-mirror
eureka加载器镜像站配置文件源码
https://github.com/bddjr/eureka-cc-mirror
chibi eureka mirror nginx proxy proxy-server
Last synced: 3 months ago
JSON representation
eureka加载器镜像站配置文件源码
- Host: GitHub
- URL: https://github.com/bddjr/eureka-cc-mirror
- Owner: bddjr
- Created: 2023-12-03T16:09:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-22T08:58:43.000Z (6 months ago)
- Last Synced: 2025-01-18T13:38:48.054Z (5 months ago)
- Topics: chibi, eureka, mirror, nginx, proxy, proxy-server
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eureka-cc-mirror
***
nginx proxy config
```nginx
location ^~ / {
proxy_pass https://eureka.codingclip.cc;
if ( $uri = "/robots.txt" ) {
return 200 "User-agent: *\nDisallow: /";
}
rewrite ^(.*)/index\.html$ $1/ redirect;
proxy_set_header Host eureka.codingclip.cc;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;
proxy_ignore_headers Set-Cookie expires;
proxy_cache proxy_cache_panel;
proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid 200 304 301 302 10m;
proxy_ssl_server_name on;
proxy_cache_revalidate on;
proxy_next_upstream error timeout http_502 http_500 http_429 non_idempotent invalid_header ;
proxy_next_upstream_tries 3;
proxy_request_buffering on;
client_body_buffer_size 1M;
client_body_in_file_only off;
client_body_timeout 30s;
}
```