User Tools

Daily TXT

DailyTXT is a diary web based application where you can writew one, and only one text page.

I am not currently using this because after all i didnt manage to properly run it behind a subpath (see this issue).

Installation

Usual dedicated user:

 useradd -d /data/daemons/dailytxt -m dailytxt
 mkdir /data/dailytxt
chown dailytxt:dailytxt /data/dailytxt

Example docker compose: File /data/daemons/dailytxt/docker-compose.yml:

docker-compose.yml
version: "3"

services:
  dailytxt:
    image: phitux/dailytxt:latest
    container_name: dailytxt
    restart: always
    environment:
      - PORT=8760
      - SECRET_KEY=<but here your key>
      - ALLOW_REGISTRATION=True
      - DATA_INDENT=2
      - JWT_EXP_DAYS=6000
      - ENABLE_UPDATE_CHECK=True
    ports:
      - "127.0.0.1:8760:8760"
    volumes:
      - "/data/dailytxt/:/app/data/"
    networks:
      - dailytxt-net

networks:
  dailytxt-net: {}

To generate the key:

 openssl rand -base64 32

Currently i was not able to make subpaths work.

Reverse Proxy

This simple config (check the The Reverse Proxy concept)

dalytxt.conf
location = /dailytxt {  
        return 301 https://$host/dailytxt/;
}

location /dailytxt/ {
    proxy_pass        http://127.0.0.1:8760; 
}

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information