分类
未分类

Linux设置http代理

vi /etc/profile 

http_proxy=proxy.com:8080
https_proxy=proxy.com:8080  
ftp_proxy=
no_proxy=10.*.*.*,192.168.*.*,*.local,localhost,127.0.0.1  
export http_proxy https_proxy ftp_proxy no_proxy  
#如需验证http_proxy=user:password@proxy.abc.com:8080  

分类
未分类

使用caddy+filebrowser 快速部署轻量网盘服务

https://caddyserver.com

https://github.com/filebrowser/filebrowser/releases

filemanager之前作为caddy的一个插件,可以快速部署一个可以在web页面上传下载的网盘服务。后来filemanager改名为filebrowser 脱离caddy 成为一个独立服务。

安装caddy

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh

安装filebrowser

curl -fsSL https://filebrowser.xyz/get.sh | bash

启动filebrowser

 filebrowser -p 2020 -r /home/file 

 caddy配置文件 /usr/local/caddy/Caddyfile

http://10.1.12.128
{
proxy / 127.0.0.1:2020
timeouts none
gzip
}

启动caddy

service caddy  restart
分类
未分类

proxmox 解决 更新软件包数据库 错误

vi /etc/apt/sources.list.d/pve-enterprise.list

注释掉

#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

echo “deb http://download.proxmox.com/debian/pve stretch pve-no-subscription” > /etc/apt/sources.list.d/pve-install-repo.list

wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg

apt update