User Tools

This is an old revision of the document!


Daily TXT

Installation

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

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

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

location /dailytxt/ { # The trailing / is important!
    proxy_pass        http://127.0.0.1:8760/; # The / is important!
    proxy_set_header  X-Script-Name /dailytxt;
    proxy_set_header     X-Remote-User $remote_user;
    proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header  Host $http_host;
    proxy_pass_header Authorization;
}

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information