User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
services:dailytxt [2024/06/18 12:00] willyservices:dailytxt [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== 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: 
-<code bash> 
- useradd -d /data/daemons/dailytxt -m dailytxt 
- mkdir /data/dailytxt 
-chown dailytxt:dailytxt /data/dailytxt 
-</code> 
- 
-Example docker compose: 
-File **/data/daemons/dailytxt/docker-compose.yml**: 
-<file - 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: {} 
-</file> 
- 
-To generate the key: 
-<code bash> 
- openssl rand -base64 32 
-</code> 
- 
-Currently i was not able to make subpaths work. 
- 
- 
-===== Reverse Proxy ===== 
- 
-This simple config (check the [[selfhost:nginx|The Reverse Proxy concept]]) 
-<file - dalytxt.conf> 
-location = /dailytxt {   
-        return 301 https://$host/dailytxt/; 
-} 
- 
-location /dailytxt/ { 
-    proxy_pass        http://127.0.0.1:8760;  
-} 
-</file> 
- 
- 
- 
  

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