Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| services:dailytxt [2024/06/18 12:00] – willy | services:dailytxt [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Daily TXT ====== | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | I am not currently using this because after all i didnt manage to properly run it behind a subpath (see [[https:// | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | Usual dedicated user: | ||
| - | <code bash> | ||
| - | | ||
| - | mkdir / | ||
| - | chown dailytxt: | ||
| - | </ | ||
| - | |||
| - | Example docker compose: | ||
| - | 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> | ||
| - | | ||
| - | </ | ||
| - | |||
| - | Currently i was not able to make subpaths work. | ||
| - | |||
| - | |||
| - | ===== Reverse Proxy ===== | ||
| - | |||
| - | This simple config (check the [[selfhost: | ||
| - | <file - dalytxt.conf> | ||
| - | location = /dailytxt { | ||
| - | return 301 https:// | ||
| - | } | ||
| - | |||
| - | location /dailytxt/ { | ||
| - | proxy_pass | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||