chaotic-aur nginx proxy

近幾版的 community/telegram-desktop 在1.5倍縮放下總是有字體錯位的情況出現,原因不明,如下圖:

切到 aur/telegram-desktop-bin 顯示正常

arch 的第三方倉庫以前我只用過 archlinuxcn, cn源沒有編譯好的 telegram-desktop-bin,所以我一直從AUR編譯。
今天翻 Wiki 發現居然挺多倉庫編譯了 telegram-desktop-bin ,比如 chaotic-aur,裝上就能用。

這個源國內直連速度好像不是很快,所以我用nginx做了個反代,因爲服務器帶寬不高,速度一般,也就比連不上強一點。你的網絡如果不在大陸建議試試直連。

/etc/pacman.conf

1
2
3
4
[chaotic-aur]
#Server = http://lonewolf.pedrohlc.com/$repo/x86_64
Server = http://aur.disown.tld/chaotic-aur/$repo/x86_64
#Server = http://chaotic-aur.disown.tld/$repo/x86_64

這兩個節點都可以試試, 然後信任密鑰

1
2
sudo pacman-key --keyserver keys.mozilla.org -r 3056513887B78AEB
sudo pacman-key --lsign-key 3056513887B78AEB

disastrousaur這個倉庫好像也不錯,也提供 telegram-desktop-bin 編譯好的二進制文件,我沒怎麼用.

1
2
[disastrousaur]
Server = https://mirror.repohost.de/$repo/$arch

Update: Fri 2019-07-12 09:11:47 CST
The proxy is no longer available, you can build it yourself, this is my nginx configuration file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
server {

listen 443 ssl http2;
server_name aur.disown.tld;
access_log off;
error_log off;

ssl_certificate /root/.acme.sh/*.disown.tld/fullchain.cer;
ssl_certificate_key /root/.acme.sh/*.disown.tld/*.disown.tld.key;


ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;

location / {

root /usr/share/nginx/html/aur;
index aur.html;
}

location /chaotic-aur {

proxy_pass http://lonewolf.pedrohlc.com/;
proxy_http_version 1.1;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
location /icons {

proxy_pass http://lonewolf.pedrohlc.com/icons;
proxy_http_version 1.1;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}
# , ,
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×