mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-01 06:36:38 +08:00
1 line
3.6 KiB
JSON
1 line
3.6 KiB
JSON
{"routes":[{"id":1,"site_name":"local","domain":"a.com","domains":["a.com"],"origin_url":"https://flare.arctel.net:443","upstreams":["https://flare.arctel.net:443"],"enabled":true,"enable_https":false,"redirect_http":false,"cache_enabled":false,"upstream_type":"direct"}],"openresty_config":{"default_server_return_status":421,"worker_processes":"auto","worker_connections":4096,"worker_rlimit_nofile":65535,"events_use":"epoll","events_multi_accept_enabled":true,"keepalive_timeout":20,"keepalive_requests":1000,"client_header_timeout":15,"client_body_timeout":15,"client_max_body_size":"64m","large_client_header_buffers":"4 16k","send_timeout":30,"proxy_connect_timeout":3,"proxy_send_timeout":60,"proxy_read_timeout":60,"websocket_enabled":true,"http3_enabled":true,"proxy_request_buffering":false,"proxy_buffering_enabled":true,"proxy_buffers":"16 16k","proxy_buffer_size":"8k","proxy_busy_buffers_size":"64k","gzip_enabled":true,"gzip_min_length":1024,"gzip_comp_level":5,"cache_enabled":false,"cache_levels":"1:2","cache_inactive":"30m","cache_max_size":"1g","cache_key_template":"$scheme$host$request_uri","cache_lock_enabled":true,"cache_lock_timeout":"5s","cache_use_stale":"error timeout updating http_500 http_502 http_503 http_504","main_config_template":"# This file is generated by OpenFlare. Do not edit manually.\nworker_processes {{OpenRestyWorkerProcesses}};\nworker_rlimit_nofile {{OpenRestyWorkerRlimitNofile}};\npid logs/nginx.pid;\nerror_log {{OpenRestyErrorLogPath}} warn;\n\nevents {\n worker_connections {{OpenRestyWorkerConnections}};\n{{OpenRestyEventsUseDirective}}{{OpenRestyEventsMultiAcceptDirective}}}\n\nhttp {\n include mime.types;\n default_type application/octet-stream;\n{{OpenRestyConnectionUpgradeMap}}{{OpenRestyDefaultServerBlock}} log_format openflare_json escape=json '{\"ts\":\"$time_iso8601\",\"host\":\"$host\",\"path\":\"$request_uri\",\"remote_addr\":\"$remote_addr\",\"status\":$status,\"request_time\":$request_time,\"bytes_sent\":$body_bytes_sent,\"request_length\":$request_length}';\n access_log {{OpenRestyAccessLogPath}} openflare_json;\n sendfile on;\n tcp_nopush on;\n tcp_nodelay on;\n keepalive_timeout {{OpenRestyKeepaliveTimeout}};\n keepalive_requests {{OpenRestyKeepaliveRequests}};\n client_header_timeout {{OpenRestyClientHeaderTimeout}};\n client_body_timeout {{OpenRestyClientBodyTimeout}};\n client_max_body_size {{OpenRestyClientMaxBodySize}};\n large_client_header_buffers {{OpenRestyLargeClientHeaderBuffers}};\n send_timeout {{OpenRestySendTimeout}};\n proxy_connect_timeout {{OpenRestyProxyConnectTimeout}};\n proxy_send_timeout {{OpenRestyProxySendTimeout}};\n proxy_read_timeout {{OpenRestyProxyReadTimeout}};\n proxy_request_buffering {{OpenRestyProxyRequestBuffering}};\n proxy_buffering {{OpenRestyProxyBuffering}};\n proxy_buffers {{OpenRestyProxyBuffers}};\n proxy_buffer_size {{OpenRestyProxyBufferSize}};\n proxy_busy_buffers_size {{OpenRestyProxyBusyBuffersSize}};\n gzip {{OpenRestyGzip}};\n gzip_min_length {{OpenRestyGzipMinLength}};\n gzip_comp_level {{OpenRestyGzipCompLevel}};\n{{OpenRestyResolverDirective}}{{OpenRestyCacheBlock}} include {{OpenRestyRouteConfigInclude}};\n}\n"},"waf":{"rule_groups":[{"id":1,"name":"全局规则组","enabled":true,"is_global":true,"block_status_code":418,"pow_config":{"difficulty":4,"algorithm":"fast","session_ttl":600,"challenge_ttl":300,"whitelist":{"ips":[],"ip_cidrs":[],"paths":[],"path_regexes":[],"user_agents":[]},"blacklist":{"ips":[],"ip_cidrs":[],"paths":[],"path_regexes":[],"user_agents":[]}}}],"bindings":[]}} |