分类: Linux
openresty/nginx反向代理minio容器
openresty配置
upstream minio_s3 {
least_conn;
server localhost:9000;
}
upstream minio_console {
least_conn;
server localhost:900……
openresty/nginx反向代理gitlab容器具体配置
今天在尝试使用openresty反向代理gitlab,期间遇到一点问题记录一下。
/etc/gitlab/gitlab.rb添加下列几行
gitlab_rails['trusted_proxies'] = [
'127.0.0.……
nginx+php报错FileNotFount和403解决
Nginx添加php配置后web页面报错File not found,后台日志显示FastCGI sent in stderr: "Primary script unknown" while reading response header from upstrea……
php上传文件大小限制修改
php默认文件上传大小限制为2M,可以修改
/etc/php/8.3/fpm/php.ini
来解除限制
Ubuntu24.04-minimal安装crontab
今天在Ubuntu最小版安装acme时提示crontab未安装,这还是第一次见,安装一下cron
apt update
apt install cron
如果是REHL系需要安装
yum install cronie
&n……
GPG签名报错error: gpg failed to sign the data:
环境: Ubuntu24.04
今天在学习给github添加gpg签名,签名时提示
error: gpg failed to sign the data:
[GNUPG:] KEY_CONSIDERED 6Axxxxxxxxxxxxxxxxxxxxxxxxx……
Ubuntu24.04修改DNS
vi /etc/systemd/resolved.conf
打开resolved.conf文件写入
DNS=8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8……
树莓派安装CUPS打印服务器实现局域网共享iPhoneAirprint打印
家里打印机型号有点老,只能USB打印,要实现局域网共享可以安装免费的PaperCut Mobility Print,也可以安装打印CUPS服务器来实现,今天安装CUPS。
1. 构建CUPS……
CPE网络中断自动重启
家里CPE老是时不时就没网了,需要重启才好使,每次手动重启有点麻烦,今天写个脚本。
vi /etc/check_network.sh
写入
#!/bin/sh
TARGET="223.5.5.5"
INTERVA……
Rclone开机自动挂载onedrive备份网站数据
因为网站数据没备份重新搞一次有点头大,手里有几个onedrive账号,刚好用来备份。
1. 获取微软账号的client_id和client_secret
访问https://portal.azure.com/……