Последняя активность 1714512373

Версия 517319dd8421c2cac23258a4a876cdc5ff9c00b4

nginx Исходник
1user root;
2worker_processes 1;
3
4events {
5 worker_connections 2048;
6}
7
8http {
9 include mime.types;
10 default_type application/octet-stream;
11 sendfile on;
12 keepalive_timeout 75;
13 client_max_body_size 100m;
14
15 server {
16 listen 80;
17 server_name localhost;
18 server_tokens off;
19
20
21
22 location ^~/aiur {
23
24 rewrite ^/aiur/(.*)$ / break;
25 rewrite =aiur / break;
26
27 proxy_pass http://www.aiursoft.cn/;
28 #跨域访问的目标URL
29 }
30
31 location ^~/chat { #实现url前缀效果匹配后跳转
32 rewrite (.*) https://chat.aiursoft.cn/#/ permanent;
33 }
34 location ^~/anduin { #实现url前缀效果匹配后跳转
35 rewrite ^/anduin/(.*)~*p https://gitlab.aiursoft.cn/users/anduin/projects permanent;
36 rewrite =anduin / permanent;
37 proxy_pass http://anduin.aiursoft.cn/;
38 }
39 location ^~/rdf { #实现url前缀效果匹配后跳转
40 rewrite ^/rdf/(.*)~*p https://gitlab.rdf.lol/users/rdf/projects permanent;
41 rewrite =rdf / permanent;
42 proxy_pass http://rdf.aiursoft.cn/;
43 }
44 location ^~/jimmoen { #实现url前缀效果匹配后跳转
45 rewrite (.*) https://jimmoen.aiursoft.cn/ permanent;
46 }
47 location ^~/anois { #实现url前缀效果匹配后跳转
48 rewrite (.*) https://anois.aiursoft.cn/ permanent;
49 }
50 location ^~/dvorak { #实现url前缀效果匹配后跳转
51 rewrite (.*) https://dvorak.aiursoft.cn/ permanent;
52 }
53 location ^~/edgeneko { #实现url前缀效果匹配后跳转
54 rewrite ^/edgeneko/(.*)~*p https://gitlab.aiursoft.cn/users/edgeneko/projects permanent;
55 rewrite =edgeneko / permanent;
56 proxy_pass http://edgeneko.aiursoft.cn/;
57 }
58 location ^~/aimer { #实现url前缀效果匹配后跳转
59 rewrite ^/aimer/(.*)~*p https://gitlab.aiursoft.cn/users/aimerneige/projects permanent;
60 rewrite =aimer / permanent;
61 proxy_pass http://aimer.aiursoft.cn/;
62 }
63
64 location ^~/kit { #实现url前缀效果匹配后跳转
65 rewrite (.*) https://kitlau.aiursoft.cn/ permanent;
66 }
67 location ^~/cody { #实现url前缀效果匹配后跳转
68 rewrite (.*) https://cody.aiursoft.cn/ permanent;
69 }
70 location ^~/fissssssh { #实现url前缀效果匹配后跳转
71 rewrite (.*) https://fissssssh.aiursoft.cn/ permanent;
72 }
73
74
75
76 location ^~/box { #实现url前缀效果匹配后跳转
77 rewrite (.*) https://gitlab.aiursoft.cn/aiursoft/box/ permanent;
78 }
79
80
81 location ^~/gist {
82 rewrite (.*) https://gist.rdf.lol/ permanent;
83 }
84
85 location ^~/gitlab {
86 rewrite ^/gitlab/(.*) https://gitlab.rdf.lol/$1 permanent;
87 rewrite (.*) http://gitlab.rdf.lol/;
88 }
89
90
91 location ^~/whois {
92 rewrite (.*) https://whois.chinaz.com/ permanent;
93 }
94
95
96
97
98
99 location / {
100 root /usr/share/nginx/html/HD800S2;
101 try_files $uri $uri/ /index.html;
102 index index.html index.htm;
103 }
104
105 error_page 500 502 503 504 /50x.html;
106 location = /50x.html {
107 root html;
108 }
109 }
110}