mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 15:08:00 +00:00
Compare commits
5 commits
aa8090eebb
...
04368c782d
Author | SHA1 | Date | |
---|---|---|---|
04368c782d | |||
a742e7fb30 | |||
17f3e6be55 | |||
0e45763eff | |||
3968799d6f |
|
@ -15,7 +15,7 @@ the [official pipx docs](https://pypa.github.io/pipx/installation/) for more in-
|
||||||
|
|
||||||
Now simply install ActivityRelay directly from git
|
Now simply install ActivityRelay directly from git
|
||||||
|
|
||||||
pipx install git+https://git.pleroma.social/pleroma/relay@0.2.3
|
pipx install git+https://git.pleroma.social/pleroma/relay@0.2.4
|
||||||
|
|
||||||
Or from a cloned git repo.
|
Or from a cloned git repo.
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ be installed via [pyenv](https://github.com/pyenv/pyenv).
|
||||||
The instructions for installation via pip are very similar to pipx. Installation can be done from
|
The instructions for installation via pip are very similar to pipx. Installation can be done from
|
||||||
git
|
git
|
||||||
|
|
||||||
python3 -m pip install git+https://git.pleroma.social/pleroma/relay@0.2.3
|
python3 -m pip install git+https://git.pleroma.social/pleroma/relay@0.2.4
|
||||||
|
|
||||||
or a cloned git repo.
|
or a cloned git repo.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
__version__ = '0.2.3'
|
__version__ = '0.2.4'
|
||||||
|
|
||||||
from . import logger
|
from . import logger
|
||||||
|
|
|
@ -4,6 +4,7 @@ import os
|
||||||
import queue
|
import queue
|
||||||
import signal
|
import signal
|
||||||
import threading
|
import threading
|
||||||
|
import traceback
|
||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
@ -175,6 +176,10 @@ class PushWorker(threading.Thread):
|
||||||
except queue.Empty:
|
except queue.Empty:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
## make sure an exception doesn't bring down the worker
|
||||||
|
except Exception:
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
await self.client.close()
|
await self.client.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -98,12 +98,6 @@ class RelayConfig(DotDict):
|
||||||
'whitelist': []
|
'whitelist': []
|
||||||
})
|
})
|
||||||
|
|
||||||
if self.is_docker:
|
|
||||||
self.update({
|
|
||||||
'db': Path('/data/relay.jsonld'),
|
|
||||||
'listen': '127.0.0.1'
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
def ban_instance(self, instance):
|
def ban_instance(self, instance):
|
||||||
if instance.startswith('http'):
|
if instance.startswith('http'):
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
.
|
aiohttp>=3.8.0
|
||||||
|
aputils@https://git.barkshark.xyz/barkshark/aputils/archive/0.1.3.tar.gz
|
||||||
|
cachetools>=5.2.0
|
||||||
|
click>=8.1.2
|
||||||
|
pyyaml>=6.0
|
||||||
|
|
12
setup.cfg
12
setup.cfg
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = relay
|
name = relay
|
||||||
version = 0.2.3
|
version = attr: relay.__version__
|
||||||
description = Generic LitePub relay (works with all LitePub consumers and Mastodon)
|
description = Generic LitePub relay (works with all LitePub consumers and Mastodon)
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown; charset=UTF-8
|
long_description_content_type = text/markdown; charset=UTF-8
|
||||||
|
@ -22,14 +22,8 @@ project_urls =
|
||||||
[options]
|
[options]
|
||||||
zip_safe = False
|
zip_safe = False
|
||||||
packages = find:
|
packages = find:
|
||||||
install_requires =
|
install_requires = file: requirements.txt
|
||||||
aiohttp >= 3.8.0
|
python_requires = >=3.7
|
||||||
cachetools >= 5.0.0
|
|
||||||
click >= 8.1.2
|
|
||||||
pycryptodome >= 3.14.1
|
|
||||||
PyYAML >= 5.0.0
|
|
||||||
aputils @ git+https://git.barkshark.xyz/barkshark/aputils@2cd1776f12
|
|
||||||
python_requires = >=3.6
|
|
||||||
|
|
||||||
[options.extras_require]
|
[options.extras_require]
|
||||||
dev =
|
dev =
|
||||||
|
|
Loading…
Reference in a new issue