smartwang

Results 4 comments of smartwang

monkey patch: ```python from py2neo import Graph, Node, Relationship, Transaction, Subgraph from py2neo.cypher.queries import ( unwind_merge_nodes_query, unwind_merge_relationships_query, ) from py2neo.cypher import cypher_join class UniquenessError(Exception): """ Raised when a condition assumed...

看起来和这个issue 有关: https://github.com/chimurai/http-proxy-middleware/issues/371 也可以在 proxy 中添加 类似这样的配置,对单独的接口进行处理: ```ts onProxyRes: (proxyRes: any, req: any, res: any) => { if (req.headers.accept === 'text/event-stream') { res.writeHead(res.statusCode, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-transform', 'Connection': 'keep-alive',...

在官方不提供api支持的情况下(see #196 ),可以使用类似这样的python脚本来自动上传证书,结合acme或者lego申请到的证书,配个cronjob,每天renew一下,应该可以缓解不少人的痛点 :p ```python #!/usr/bin/env python3 import json import requests ENDPOINT="https://YOUR_ADDRESS:9443" # FIXME ADMIN_PASSWORD="YOUPASSWORD" # FIXME CERT_ID=YOUR_ID # int # FIXME CRT_FILE="/path/to/your.crt" # FIXME KEY_FILE="/path/to/your.key" # FIXME def get_csrf_token():...