DailyTxT 值得拥有的日记软件

younghuie10个月前 (02-02)docker收集65

特征:

加密:您写入的所有内容在写入服务器存储之前都经过加密。即使管理员也无法读取您的私人内容!

文件上传:您每天可以上传任意文件(每个文件最大 128 MB)。它们也会加密存储在服务器上。

搜索:通过轻松扫描您的笔记以查找任何关键字并重新发现您可能几乎忘记的细节来支持您的记忆。

多语言支持: Web 应用程序目前提供德语、英语、西班牙语和中文(简体)翻译。语言会根据您的浏览器设置自动检测和选择。更多语言很容易添加 -只要 您向我提供语言文件!请参阅client/src/lang/translations

移动端:响应式设计,方便在移动屏幕上使用。另外:允许安装“A2HS”(添加 2 个主屏幕)

多用户支持:您可以创建多个用户帐户。每个帐户使用自己的加密密钥 - 因此不存在数据泄露的风险。

备份和恢复:您可以将所有数据(解密)导出到 zip 文件中以进行备份,然后通过上传 zip 文件重新导入数据。

模板:创建模板,您可以每天重复使用。

如果您来自journey.cloud,您可以尝试此脚本将您的文本导入DailyTxT。

🌟 还有一个单独的 CLI 程序,可以在没有运行服务器的情况下解密您的文件。示例用例:10 年后您的服务器关闭,但您仍然拥有加密的 dailytxt 文件并想再次阅读它们。

项目地址:https://github.com/PhiTux/DailyTxT

docker-compose.yml :

services:
  dailytxt:
    image: phitux/dailytxt:latest
    container_name: dailytxt
    restart: always
    environment:
      # That's the internal container-port. You can actually use any portnumber (must match with the one at 'p>
      - PORT=8765

      - SECRET_KEY=<openssl rand -base64 32>

      # Set it to False or remove the line completely to disallow registration of new users.
      - ALLOW_REGISTRATION=False

      # Use this if you want the json log file to be indented. Makes it easier to compare the files. Otherwise>
      - DATA_INDENT=2

      # Set after how many days the JWT token will expire and you have to re-login. Defaults to 30 days if lin>
      - JWT_EXP_DAYS=1

      # Enable/disable a feature of DailyTxT to auto-check maximal once per hour if there's a newer version of>
      - ENABLE_UPDATE_CHECK=True
    ports:
      - "9999:8765"
      # perhaps you only want:
      # "<host_port>:8765"
    volumes:
      - "./data:/app/data/"
      # Or perhaps if using on a windows enviroment:
      # "C:/Users/example/dailytxt/:/app/data"

其中- ALLOW_REGISTRATION=False第一次启动需要设置为True,然后可以注册一个用户名和密码,之后修改完了,重启容器。这样别人就无法注册了。

作者说的以下四点需要注意以下:

There are four important things that you should adapt to your needs:

Generate a secret_key by running openssl rand -base64 32 in your bash

You probably want to allow the registration on the first run, generate the necessary accounts, and then restart the container with disallowed registration!

Choose the port on your localhost.

Select a path, where your diary-files are saved beyond the container lifetime.




分享给朋友: