常规端口 standard port
常规端口很简单,使用两个 server 块,一个监听 80 做跳转,一个监听 443 做实际 serving
server {
listen 80 default_server;
server_name xxx.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name xxx.example.com;
ssl_certificate /path/to/fullchain.... 阅读全文 »
搜遍了全网,只有这个链接 ( https://forum.openwrt.org/t/solved-luci-overview-page-has-blank-fields/16967 ) 类似。但我使用 frp 映射后的域名访问主页又能正常展示这些字段。看了下接口返回均是 200,response 也都正常。
我的是下面这样的
通过 F12 Console 可以看到 Uncaught TypeError: Cannot read properties of null (reading 'wan') 这样的报错,实际上 index 文件 /usr/lib/lua/luci/view/a... 阅读全文 »
插件开源地址 https://github.com/Tencent-Cloud-Plugins/tencentcloud-openwrt-plugin-ddns
进入 openwrt 后台,进入 「系统」 -> 「软件包」 然后在 「下载并安装软件包」 的输入框里粘贴此 uri http://openwrt-tencentddns-1301800460.cos.ap-guangzhou.myqcloud.com/luci-app-tencentddns_0.1.0-1_all.ipk 然后点击确认,一般不出错的话,包含 luci 的 tencent ddns 就安装好了,刷新页面后... 阅读全文 »
文章难免存在错误、疏漏,如果愿意,欢迎指出勘误。
1. 前言
关于文件传输协议/文件共享协议,可以拿出来介绍的可以有很多,本文列举了一些通用的基础的发展较早的协议详细的介绍(当然了,没有深入的原理,咱也不会啊 :笑),一些较新的作了简单陈述,没有深究原理和实现。
本文主要分为三个部分
基础的文件传输/共享协议,更加推荐在内网使用的,不允许也不推荐暴露到公网。使用建议 点我
个人公网文件管理方案
实践: 在内网自建一个 seafile server, 并通过 frp 暴露在公网 serving,实现内外网都可以上传、下载、同步、分享。如何食用?点我
2. 协议总览
SMB/CIF... 阅读全文 »
本文使用 docker-compose 搭建 seafile server(此时我在使用的 Server Version: 9.0.5),compose file 如下,参考自官方 https://docs.seafile.com/d/cb1d3f97106847abbf31/files/?p=/docker/docker-compose.yml
version: '2.0'
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
environment:
- MYSQL_RO... 阅读全文 »