====== Daily TXT ======
[[https://github.com/PhiTux/DailyTxT|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 [[https://github.com/PhiTux/DailyTxT/issues/36|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**:
version: "3"
services:
dailytxt:
image: phitux/dailytxt:latest
container_name: dailytxt
restart: always
environment:
- PORT=8760
- SECRET_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 [[selfhost:nginx|The Reverse Proxy concept]])
location = /dailytxt {
return 301 https://$host/dailytxt/;
}
location /dailytxt/ {
proxy_pass http://127.0.0.1:8760;
}