finsl commited on
Commit
220064b
·
verified ·
1 Parent(s): 9cedadb

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +21 -0
nginx.conf ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 8080;
3
+ server_name qwqqer-zuanfa.hf.space;
4
+
5
+ access_log /var/log/nginx/access.log;
6
+ error_log /var/log/nginx/error.log;
7
+
8
+ location / {
9
+ allow all;
10
+ proxy_pass https://68s6dre6jub7ry36r6xt.pages.dev/;
11
+
12
+ # 强制设置 Host 头为 Cloudflare Pages 域名
13
+ proxy_set_header Host 68s6dre6jub7ry36r6xt.pages.dev;
14
+ proxy_set_header X-Real-IP $remote_addr;
15
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
+ proxy_set_header X-Forwarded-Proto $scheme;
17
+
18
+ proxy_http_version 1.1;
19
+ proxy_ssl_server_name on;
20
+ }
21
+ }