configuration: update cache size config option

This commit is contained in:
Nick Peng
2023-03-21 20:30:05 +08:00
parent dfeefe23fd
commit cd13d27519
4 changed files with 5 additions and 4 deletions

View File

@@ -40,10 +40,10 @@ jobs:
cd /root/en
mkdocs build
cd /root
mkdocs build
SITE_URL=${{ vars.SITE_URL }} mkdocs build
mv /root/en/site /root/site/en
# patch 404 page, remove absolute path
sed 's@="/@="@g' -i /root/site/404.html
[ -z "${{ vars.SITE_URL }}" ] && sed 's@="/@="@g' -i /root/site/404.html
sed 's@="/@="@g' -i /root/site/en/404.html
# patch language change url
find /root/site -name "*.htm*" -print0 | xargs -0 sed -i 's/href=" .."/href=".."/g'

View File

@@ -19,7 +19,7 @@ hide:
| bind-cert-file | SSL证书文件路径 | smartdns-cert.pem | 合法路径字符串 | bind-cert-file cert.pem |
| bind-cert-key-file | SSL证书KEY文件路径 | smartdns-key.pem | 合法路径字符串 | bind-cert-key-file key.pem |
| bind-cert-key-pass | SSL证书KEY文件密码 | 无 | 字符串 | bind-cert-key-pass password |
| cache-size | 域名结果缓存个数 | 512 | 大于等于 0 的数字 | cache-size 512 |
| cache-size | 域名结果缓存个数 | 自动,根据系统内存自动调整大小 | 大于等于 0 的数字 | cache-size 512 |
| cache-persist | 是否持久化缓存 | 自动。<br />当 cache-file 所在的位置有超过 128 MB 的可用空间时启用,否则禁用。 | [yes\|no] | cache-persist yes |
| cache-file | 缓存持久化文件路径 | /tmp/<br />smartdns.cache | 合法路径字符串 | cache-file /tmp/smartdns.cache |
| tcp-idle-time | TCP 链接空闲超时时间 | 120 | 大于等于 0 的数字 | tcp-idle-time 120 |

View File

@@ -15,7 +15,7 @@ hide:
|bind-cert-file|SSL Certificate file path|smartdns-cert.pem|path| bind-cert-file cert.pem |
|bind-cert-key-file|SSL Certificate key file path|none|smartdns-key.pem| bind-cert-key-file key.pem |
|bind-cert-key-pass|SSL Certificate key file password|none|string| bind-cert-key-pass password |
|cache-size|Domain name result cache number|512|integer|cache-size 512
|cache-size|Domain name result cache number|Auto: Set cache site by memory size. |integer|cache-size 512
|cache-persist|enable persist cache|Auto: Enabled if the location of `cache-file` has more than 128MB of free space.|[yes\|no]|cache-persist yes
|cache-file|cache persist file|/tmp/<br />smartdns.cache|path|cache-file /tmp/smartdns.cache
|tcp-idle-time|TCP connection idle timeout|120|integer|tcp-idle-time 120

View File

@@ -1,6 +1,7 @@
site_name: SmartDNS
site_description: SmartDNS
site_author: pymumu
site_url: !ENV SITE_URL
repo_name: 'pymumu/smartdns'
repo_url: 'https://github.com/pymumu/smartdns'