Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| services:dailytxt [2024/06/13 06:22] – created willy | services:dailytxt [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Daily TXT ====== | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | |||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | <code bash> | ||
| - | | ||
| - | mkdir / | ||
| - | chown dailytxt: | ||
| - | </ | ||
| - | |||
| - | File **/ | ||
| - | <file - docker-compose.yml> | ||
| - | version: " | ||
| - | |||
| - | services: | ||
| - | dailytxt: | ||
| - | image: phitux/ | ||
| - | container_name: | ||
| - | restart: always | ||
| - | environment: | ||
| - | - PORT=8760 | ||
| - | - SECRET_KEY=< | ||
| - | - ALLOW_REGISTRATION=True | ||
| - | - DATA_INDENT=2 | ||
| - | - JWT_EXP_DAYS=6000 | ||
| - | - ENABLE_UPDATE_CHECK=True | ||
| - | ports: | ||
| - | - " | ||
| - | volumes: | ||
| - | - "/ | ||
| - | networks: | ||
| - | - dailytxt-net | ||
| - | |||
| - | networks: | ||
| - | dailytxt-net: | ||
| - | </ | ||
| - | |||
| - | To generate the key: | ||
| - | <code bash> | ||
| - | | ||
| - | </ | ||
| - | |||
| - | ===== Reverse Proxy ===== | ||
| - | |||
| - | <file - dalytxt.conf> | ||
| - | location = /dailytxt { | ||
| - | return 301 https:// | ||
| - | } | ||
| - | |||
| - | location /dailytxt/ { # The trailing / is important! | ||
| - | proxy_pass | ||
| - | proxy_set_header | ||
| - | proxy_set_header | ||
| - | proxy_set_header | ||
| - | proxy_set_header | ||
| - | proxy_pass_header Authorization; | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||