Última actividad 1714512373

root revisó este gist 1714512373. Ir a la revisión

1 file changed, 4 insertions, 6 deletions

nginx

@@ -20,13 +20,11 @@ http {
20 20
21 21
22 22 location ^~/aiur {
23 -
24 - rewrite ^/aiur/(.*)$ / break;
25 - rewrite =aiur / break;
26 -
23 + rewrite ^/aiur/(.*)~*p https://gitlab.aiursoft.cn/explore permanent;
24 + rewrite ^/aiur/(.*)$ / break;
25 + rewrite =aiur / break;
27 26 proxy_pass http://www.aiursoft.cn/;
28 - #跨域访问的目标URL
29 - }
27 + }
30 28
31 29 location ^~/chat { #实现url前缀效果匹配后跳转
32 30 rewrite (.*) https://chat.aiursoft.cn/#/ permanent;

root revisó este gist 1714461684. Ir a la revisión

1 file changed, 17 insertions, 7 deletions

nginx

@@ -26,8 +26,8 @@ http {
26 26
27 27 proxy_pass http://www.aiursoft.cn/;
28 28 #跨域访问的目标URL
29 - }
30 -
29 + }
30 +
31 31 location ^~/chat { #实现url前缀效果匹配后跳转
32 32 rewrite (.*) https://chat.aiursoft.cn/#/ permanent;
33 33 }
@@ -60,7 +60,9 @@ http {
60 60 rewrite =aimer / permanent;
61 61 proxy_pass http://aimer.aiursoft.cn/;
62 62 }
63 -
63 + location ^~/edgenekop { #实现url前缀效果匹配后跳转
64 + rewrite (.*) https://gitlab.aiursoft.cn/users/edgeneko/projects permanent;
65 + }
64 66 location ^~/kit { #实现url前缀效果匹配后跳转
65 67 rewrite (.*) https://kitlau.aiursoft.cn/ permanent;
66 68 }
@@ -76,17 +78,25 @@ http {
76 78 location ^~/box { #实现url前缀效果匹配后跳转
77 79 rewrite (.*) https://gitlab.aiursoft.cn/aiursoft/box/ permanent;
78 80 }
79 -
81 + location ^~/nextcloud {
82 + rewrite (.*) https://nextcloud.aiursoft.cn/index.php/login permanent;
83 + }
80 84
81 85 location ^~/gist {
82 - rewrite (.*) https://gist.rdf.lol/ permanent;
86 + rewrite (.*) https://gist.rdf.lol/all permanent;
87 + }
88 + location ^~/git-aiur {
89 + rewrite (.*) https://git.aiursoft.cn/explore/repos permanent;
83 90 }
84 91
85 92 location ^~/gitlab {
86 93 rewrite ^/gitlab/(.*) https://gitlab.rdf.lol/$1 permanent;
87 - rewrite (.*) http://gitlab.rdf.lol/;
94 + rewrite (.*) http://gitlab.rdf.lol/ permanent;
95 + }
96 + location ^~/git {
97 + rewrite ^/git/(.*) https://git.rdf.lol/$1 permanent;
98 + rewrite (.*) https://git.rdf.lol permanent;
88 99 }
89 -
90 100
91 101 location ^~/whois {
92 102 rewrite (.*) https://whois.chinaz.com/ permanent;

root revisó este gist 1714459360. Ir a la revisión

1 file changed, 1 insertion, 3 deletions

nginx

@@ -60,9 +60,7 @@ http {
60 60 rewrite =aimer / permanent;
61 61 proxy_pass http://aimer.aiursoft.cn/;
62 62 }
63 - location ^~/edgenekop { #实现url前缀效果匹配后跳转
64 - rewrite (.*) https://gitlab.aiursoft.cn/users/edgeneko/projects permanent;
65 - }
63 +
66 64 location ^~/kit { #实现url前缀效果匹配后跳转
67 65 rewrite (.*) https://kitlau.aiursoft.cn/ permanent;
68 66 }

root revisó este gist 1714431491. Ir a la revisión

1 file changed, 2 insertions, 4 deletions

nginx

@@ -26,10 +26,8 @@ http {
26 26
27 27 proxy_pass http://www.aiursoft.cn/;
28 28 #跨域访问的目标URL
29 - }
30 - location ^~/js { #实现url前缀效果匹配后跳转
31 - rewrite (.*) http://180.101.234.40:18443/APPGHPublicInfoPlat/PortalPage/Login.aspx;
32 - }
29 + }
30 +
33 31 location ^~/chat { #实现url前缀效果匹配后跳转
34 32 rewrite (.*) https://chat.aiursoft.cn/#/ permanent;
35 33 }

root revisó este gist 1714425490. Ir a la revisión

1 file changed, 114 insertions

nginx(archivo creado)

@@ -0,0 +1,114 @@
1 + user root;
2 + worker_processes 1;
3 +
4 + events {
5 + worker_connections 2048;
6 + }
7 +
8 + http {
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 + location ^~/js { #实现url前缀效果匹配后跳转
31 + rewrite (.*) http://180.101.234.40:18443/APPGHPublicInfoPlat/PortalPage/Login.aspx;
32 + }
33 + location ^~/chat { #实现url前缀效果匹配后跳转
34 + rewrite (.*) https://chat.aiursoft.cn/#/ permanent;
35 + }
36 + location ^~/anduin { #实现url前缀效果匹配后跳转
37 + rewrite ^/anduin/(.*)~*p https://gitlab.aiursoft.cn/users/anduin/projects permanent;
38 + rewrite =anduin / permanent;
39 + proxy_pass http://anduin.aiursoft.cn/;
40 + }
41 + location ^~/rdf { #实现url前缀效果匹配后跳转
42 + rewrite ^/rdf/(.*)~*p https://gitlab.rdf.lol/users/rdf/projects permanent;
43 + rewrite =rdf / permanent;
44 + proxy_pass http://rdf.aiursoft.cn/;
45 + }
46 + location ^~/jimmoen { #实现url前缀效果匹配后跳转
47 + rewrite (.*) https://jimmoen.aiursoft.cn/ permanent;
48 + }
49 + location ^~/anois { #实现url前缀效果匹配后跳转
50 + rewrite (.*) https://anois.aiursoft.cn/ permanent;
51 + }
52 + location ^~/dvorak { #实现url前缀效果匹配后跳转
53 + rewrite (.*) https://dvorak.aiursoft.cn/ permanent;
54 + }
55 + location ^~/edgeneko { #实现url前缀效果匹配后跳转
56 + rewrite ^/edgeneko/(.*)~*p https://gitlab.aiursoft.cn/users/edgeneko/projects permanent;
57 + rewrite =edgeneko / permanent;
58 + proxy_pass http://edgeneko.aiursoft.cn/;
59 + }
60 + location ^~/aimer { #实现url前缀效果匹配后跳转
61 + rewrite ^/aimer/(.*)~*p https://gitlab.aiursoft.cn/users/aimerneige/projects permanent;
62 + rewrite =aimer / permanent;
63 + proxy_pass http://aimer.aiursoft.cn/;
64 + }
65 + location ^~/edgenekop { #实现url前缀效果匹配后跳转
66 + rewrite (.*) https://gitlab.aiursoft.cn/users/edgeneko/projects permanent;
67 + }
68 + location ^~/kit { #实现url前缀效果匹配后跳转
69 + rewrite (.*) https://kitlau.aiursoft.cn/ permanent;
70 + }
71 + location ^~/cody { #实现url前缀效果匹配后跳转
72 + rewrite (.*) https://cody.aiursoft.cn/ permanent;
73 + }
74 + location ^~/fissssssh { #实现url前缀效果匹配后跳转
75 + rewrite (.*) https://fissssssh.aiursoft.cn/ permanent;
76 + }
77 +
78 +
79 +
80 + location ^~/box { #实现url前缀效果匹配后跳转
81 + rewrite (.*) https://gitlab.aiursoft.cn/aiursoft/box/ permanent;
82 + }
83 +
84 +
85 + location ^~/gist {
86 + rewrite (.*) https://gist.rdf.lol/ permanent;
87 + }
88 +
89 + location ^~/gitlab {
90 + rewrite ^/gitlab/(.*) https://gitlab.rdf.lol/$1 permanent;
91 + rewrite (.*) http://gitlab.rdf.lol/;
92 + }
93 +
94 +
95 + location ^~/whois {
96 + rewrite (.*) https://whois.chinaz.com/ permanent;
97 + }
98 +
99 +
100 +
101 +
102 +
103 + location / {
104 + root /usr/share/nginx/html/HD800S2;
105 + try_files $uri $uri/ /index.html;
106 + index index.html index.htm;
107 + }
108 +
109 + error_page 500 502 503 504 /50x.html;
110 + location = /50x.html {
111 + root html;
112 + }
113 + }
114 + }
Siguiente Anterior