0
0

Proxigram: maintain own providers.json and disable RSS

This commit is contained in:
Opnxng 2024-05-01 12:07:13 +08:00
parent 49a5c958ed
commit 1dfd340ea2
4 changed files with 54 additions and 4 deletions

View File

@ -0,0 +1,10 @@
- name: Copy providers.json
copy:
src: "proxigram/providers.json"
dest: "{{ docker_dir }}/caddy/www/providers.json"
owner: 1000
group: 1000
mode: 0755
when:
- inventory_hostname == 'oracle4'

View File

@ -0,0 +1,38 @@
[
{
"url": "https://picuki.me",
"headlessBrowser": false,
"provider": "Wizstat",
"canget": ["Profile", "Posts", "Post", "Comments"]
},
{
"url": "https://imginn.com",
"headlessBrowser": false,
"provider": "Imgsed",
"canget": ["Post", "Comments", "Search"]
},
{
"url": "https://storiesig.info",
"headlessBrowser": false,
"provider": "Storiesig",
"canget": ["Profile", "Stories"]
},
{
"url": "https://igram.world",
"headlessBrowser": false,
"provider": "Storiesig",
"canget": ["Profile", "Stories"]
},
{
"url": "https://anonyig.com",
"headlessBrowser": false,
"provider": "Storiesig",
"canget": ["Profile", "Stories"]
},
{
"url": "https://instanavigation.net",
"headlessBrowser": false,
"provider": "Instanavigation",
"canget": ["Stories"]
}
]

View File

@ -23,9 +23,9 @@ services:
- PROXY=true
- FETCH_PROVIDERS=true
- FETCH_PROVIDERS_EVERY=1d
- PROVIDERS_LIST_URL=https://codeberg.org/ThePenguinDev/proxigram-providers/raw/branch/main/providers.json
- PROVIDERS_LIST_URL=https://about.opnxng.com/providers.json
- USE_HEADLESS_PROVIDERS=false
- RSS=true
- RSS=false
- ITEMS_PER_RSS=5
- SLEEP_TIME_PER_REQUEST=5
restart: unless-stopped
@ -33,7 +33,7 @@ services:
- 8908:3000
networks:
- proxigram
proxigram-redis:
container_name: proxigram-redis
image: redis:alpine
@ -49,4 +49,4 @@ services:
networks:
proxigram:
name: proxigram
name: proxigram

View File

@ -588,6 +588,8 @@
@ig host ig.{$HOSTNAME}
handle @ig {
encode zstd gzip
rate_limit {remote.ip} 2r/s 60000 429
rate_limit {remote.ip} 45r/m 300000 429
reverse_proxy {
to {{ oracle1_private_ip }}:8908
to {{ oracle2_private_ip }}:8908