user root; worker_processes 1; events { worker_connections 2048; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 75; client_max_body_size 100m; server { listen 80; server_name localhost; server_tokens off; location ^~/aiur { rewrite ^/aiur/(.*)~*p https://gitlab.aiursoft.cn/explore permanent; rewrite ^/aiur/(.*)$ / break; rewrite =aiur / break; proxy_pass http://www.aiursoft.cn/; } location ^~/chat { #实现url前缀效果匹配后跳转 rewrite (.*) https://chat.aiursoft.cn/#/ permanent; } location ^~/anduin { #实现url前缀效果匹配后跳转 rewrite ^/anduin/(.*)~*p https://gitlab.aiursoft.cn/users/anduin/projects permanent; rewrite =anduin / permanent; proxy_pass http://anduin.aiursoft.cn/; } location ^~/rdf { #实现url前缀效果匹配后跳转 rewrite ^/rdf/(.*)~*p https://gitlab.rdf.lol/users/rdf/projects permanent; rewrite =rdf / permanent; proxy_pass http://rdf.aiursoft.cn/; } location ^~/jimmoen { #实现url前缀效果匹配后跳转 rewrite (.*) https://jimmoen.aiursoft.cn/ permanent; } location ^~/anois { #实现url前缀效果匹配后跳转 rewrite (.*) https://anois.aiursoft.cn/ permanent; } location ^~/dvorak { #实现url前缀效果匹配后跳转 rewrite (.*) https://dvorak.aiursoft.cn/ permanent; } location ^~/edgeneko { #实现url前缀效果匹配后跳转 rewrite ^/edgeneko/(.*)~*p https://gitlab.aiursoft.cn/users/edgeneko/projects permanent; rewrite =edgeneko / permanent; proxy_pass http://edgeneko.aiursoft.cn/; } location ^~/aimer { #实现url前缀效果匹配后跳转 rewrite ^/aimer/(.*)~*p https://gitlab.aiursoft.cn/users/aimerneige/projects permanent; rewrite =aimer / permanent; proxy_pass http://aimer.aiursoft.cn/; } location ^~/edgenekop { #实现url前缀效果匹配后跳转 rewrite (.*) https://gitlab.aiursoft.cn/users/edgeneko/projects permanent; } location ^~/kit { #实现url前缀效果匹配后跳转 rewrite (.*) https://kitlau.aiursoft.cn/ permanent; } location ^~/cody { #实现url前缀效果匹配后跳转 rewrite (.*) https://cody.aiursoft.cn/ permanent; } location ^~/fissssssh { #实现url前缀效果匹配后跳转 rewrite (.*) https://fissssssh.aiursoft.cn/ permanent; } location ^~/box { #实现url前缀效果匹配后跳转 rewrite (.*) https://gitlab.aiursoft.cn/aiursoft/box/ permanent; } location ^~/nextcloud { rewrite (.*) https://nextcloud.aiursoft.cn/index.php/login permanent; } location ^~/gist { rewrite (.*) https://gist.rdf.lol/all permanent; } location ^~/git-aiur { rewrite (.*) https://git.aiursoft.cn/explore/repos permanent; } location ^~/gitlab { rewrite ^/gitlab/(.*) https://gitlab.rdf.lol/$1 permanent; rewrite (.*) http://gitlab.rdf.lol/ permanent; } location ^~/git { rewrite ^/git/(.*) https://git.rdf.lol/$1 permanent; rewrite (.*) https://git.rdf.lol permanent; } location ^~/whois { rewrite (.*) https://whois.chinaz.com/ permanent; } location / { root /usr/share/nginx/html/HD800S2; try_files $uri $uri/ /index.html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }