User Tools

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:dailytxt [2024/06/13 06:22] 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]] 
- 
- 
- 
-===== Installation ===== 
- 
-<code bash> 
- useradd -d /data/daemons/dailytxt -m dailytxt 
- mkdir /data/dailytxt 
-chown dailytxt:dailytxt /data/dailytxt 
-</code> 
- 
-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 ===== 
- 
-<file - 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; 
-} 
-</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