2022年7月6日星期三

aapanel/宝塔 反代优化


新建网址主页域名,开启ssl

反代conf那里粘贴如下

(https://整串改成你的)


#PROXY-START/

location /

{

    #缓存媒体文件

    location ~* .jpg|.png|.gif|.jpeg|.ttf|.webp|.woff|.woff2|.ico$

    {

        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_set_header REMOTE-HOST $remote_addr;

        proxy_pass https://www.要反代的域.com;

        proxy_cache cache_one;

        proxy_cache_valid 30d;

        proxy_ignore_headers Cache-Control;

        add_header X-Cache "$upstream_cache_status from $server_addr";

    }

    

    #缓存css、js、html

     location ~* .css|.js|.html$

    {

        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_set_header REMOTE-HOST $remote_addr;

        proxy_pass https://www.要反代的域.com;

        proxy_cache cache_one;

        proxy_cache_valid 3d;

        proxy_ignore_headers Cache-Control;

        add_header X-Cache "$upstream_cache_status from $server_addr";

    }

    

    proxy_pass https://www.要反代的域.com;

    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_set_header REMOTE-HOST $remote_addr;

    

    #持久化连接相关配置

    #proxy_connect_timeout 30s;

    #proxy_read_timeout 86400s;

    #proxy_send_timeout 30s;

    #proxy_http_version 1.1;

    #proxy_set_header Upgrade $http_upgrade;

    #proxy_set_header Connection "upgrade";

    #add_header X-Cache $upstream_cache_status;

 

    #expires 12h;

}

    #PROXY-END/ 

2022年5月12日星期四

Docker ARM Emby 4.6.7 破解版思路分享


4.6.7 emby arm架构破解文件打包

https://wwu.lanzouy.com/iQTj204o1juj


解压上述压缩包得到几个文件
放进去vps下面目录内,提示覆盖按yes
/opt/emby-server/system


service emby-server restart

然后设置里随便输入key,即可激活。ctrl+F5刷新页面看到小金标


--------------------------ARM EMBY Docker思路--------------------------------------


进入docker容器

docker exec -it 4exx容器ID /bin/bash

#更新并安装wget

apt update && apt install wget -y


embycrack-armhf.zip压缩包内几个文件放在http外链

cd app/emby

rm -rf 删掉压缩包那5个文件

wget那5个文件


docker restart xxxx 重启emby

随便设置里输入key,激活,ctrl+F5看到金标








2022年5月11日星期三

PVE CT机增加Docker功能

例如CT100是Debian10 CT机,为了让他支持Docker

PVE母鸡ssh敲入

nano  /etc/pve/lxc/100.conf


添加下面三行

lxc.apparmor.profile: unconfined

lxc.cgroup.devices.allow: a

lxc.cap.drop:


#保存

ctrl+o

#重启CT100 机

#之后CT机ssh一键添加docker

curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh

openwrt在线编译 插件名字查找

openwrt在线编译 https://firmware-selector.staging.immortalwrt.org/ 插件名字查找 https://downloads.staging.immortalwrt.org/releases/23.05.1/packages/x8...