blob: 74a45b5b52f21fc329c38f76d6197287608ca7d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Server:
# Listen port
PORT=3000
## Base URI
URL=http://localhost:3000
# CACHE:
## Enable caching using Redis
CACHE=false
## Redis connection URL
REDIS_URL=redis://127.0.0.1:6379
## Don't keep it too high!
## 7|m|h|d
EXPIRE_TIME_FOR_RSS=10m
# No more than 2d, images and videos will break
EXPIRE_TIME_FOR_POST=6h
EXPIRE_TIME_FOR_POSTS=1h
EXPIRE_TIME_FOR_PROFILE=6h
EXPIRE_TIME_FOR_STORIES=30m
# Proxy:
## Proxy all the images and videos through the instance.
## If set to false, images and videos will be loaded from the provider server decreasing privacy for the end user.
PROXY=false
# Providers:
## Fetch the providers URLs remotly.
## If set to false, it will cached the list of providers once. New providers will have to be added manually
FETCH_PROVIDERS=true
## If FETCH_PROVIDERS is set to true, provide how often you want to re-fetch;
## 7|m|h|d
FETCH_PROVIDERS_EVERY=1d
## Use a custom remote providers list.
PROVIDERS_LIST_URL=https://codeberg.org/ThePenguinDev/proxigram-providers/raw/branch/main/providers.json
## Some providers depends on a headless browser
USE_HEADLESS_PROVIDERS=true
# RSS:
## Set to false to disable RSS.
RSS=true
## Maximum 12.
ITEMS_PER_RSS=10
## In ms.
SLEEP_TIME_PER_REQUEST=10
|