服务器配置
server {
listen 3030;
server_name _;
# 原有配置
location /deploy/ {
alias /home/deploy/;
autoindex on;
}
# 新增反向代理配置
location /jitsi/ {
proxy_pass <https://download.jitsi.org/>;
proxy_set_header Host download.jitsi.org;
proxy_ssl_server_name on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
安装的时候修改对应的安装命令
服务器先下载gpg.ley
curl -o /home/deploy/jitsi-key.gpg.key <https://download.jitsi.org/jitsi-key.gpg.key>
配置源
# 从你的服务器下载密钥
curl -sL <http://xxxxip:3030/deploy/jitsi-key.gpg.key> | sudo sh -c 'gpg --dearmor > /usr/share/keyrings/jitsi-keyring.gpg'
# 使用反向代理的APT源
echo "deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] <http://xxxxip:3030/jitsi/> stable/" | sudo tee /etc/apt/sources.list.d/jitsi-stable.list
sudo apt update