2024年10月

主力NAS切换为飞牛系统fnOS,回头补一篇教程和记录

安装

Snipaste_2024-10-29_16-40-23.png

基本设置和基础软件

DDNS和证书

反向代理

编辑/usr/trim/nginx/conf/nginx.conf,加入新server代码段

  1. 将5230端口的memos代理到5233端口,并开启https,路由器端口转发5233端口

    server {
         listen 5233 ssl;
         server_name nas.leosutopia.cn;
    
         trim_hook_cert_switch  on;
         ssl_certificate      $ssl_server_name;
         ssl_certificate_key  $ssl_server_name;
         ssl_session_cache    shared:SSL:1m;
         ssl_session_timeout  5m;
         ssl_ciphers  HIGH:!aNULL:!MD5;
         ssl_prefer_server_ciphers  on;
    
         location / {
             proxy_pass http://127.0.0.1:5230;
         }
     }
  2. 将2345端口的迅雷代理到2346端口,并开启https,路由器端口转发2346端口

     server {
         listen 2346 ssl;
         server_name nas.leosutopia.cn;
    
         trim_hook_cert_switch  on;
         ssl_certificate      $ssl_server_name;
         ssl_certificate_key  $ssl_server_name;
         ssl_session_cache    shared:SSL:1m;
         ssl_session_timeout  5m;
         ssl_ciphers  HIGH:!aNULL:!MD5;
         ssl_prefer_server_ciphers  on;
    
         location / {
             proxy_pass http://127.0.0.1:2345;
         }
     }