0%

近期服务器维护

  1. nginx 更新
    似乎是服务器母鸡更新了,之前 nginx 版本进程一直出现 100% CPU 占用的情况。就重新编译了一遍 nginx 的二进制文件。
    本次编译依然采用了 fancyindexbrotoli 模块。
    彻底放弃了 pagespeed 模块。忽略了之前好多参数。
1
--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --user=nginx --group=nginx --with-ld-opt=-ljemalloc --with-cc-opt=-Wno-deprecated-declarations --with-threads --with-file-aio --with-stream --with-http_ssl_module --with-http_v2_module --add-module=../ngx-fancyindex --add-module=../ngx_brotli
  1. 更换 CentOS8 的源
    这个版本的服务器已经被官方放弃维护了,就替换了 repos 里面的源。
    archive.kernel.org 赛高。

  2. 安装了 navidrome
    按照官方 wiki 安装了 navidrome。现在我的小鸡也出现硬盘告急情况了。

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    location ^~ /music {
    proxy_pass http://localhost:4533/music;
    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 X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Protocol $scheme;
    proxy_set_header X-Forwarded-Host $http_host;
    proxy_buffering off;
    }

    1
    2
    3
    4
    5
    LogLevel = 'DEBUG'
    ScanSchedule = '@every 4h'
    TranscodingCacheSize = '150MiB'
    MusicFolder = 'music'
    baseurl = '/music/'