mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Keep verified gateway identities bound to their actual upgrade sockets before SockJS filters custom headers. Add repository-local Nextcloud 32-35 acceptance runs for authentication, isolation, uploads, lifecycle, source-built upgrades, restored volumes and mutual-TLS FRP. Harden release archive checks and exercise signing and workflow failures. Thanks to xet7.
22 lines
623 B
Python
22 lines
623 B
Python
#!/usr/bin/env python3
|
|
"""Start the real pinned HaRP servers on isolated loopback ports."""
|
|
import asyncio
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / '.tools/nextcloud-harp'))
|
|
import haproxy_agent as harp
|
|
|
|
|
|
async def main():
|
|
# Same servers as upstream main(); only its fixed control port is configurable.
|
|
await asyncio.gather(
|
|
harp.SPOA_AGENT._run(host=harp.SPOA_HOST, port=harp.SPOA_PORT),
|
|
harp.run_http_server(host='127.0.0.1', port=int(os.environ['HP_CONTROL_PORT'])),
|
|
harp._loop_lag_monitor(),
|
|
)
|
|
|
|
|
|
asyncio.run(main())
|