我正在尝试通过Synology API更改相机通知时间表。
GET请求返回414 Request-URI Too Large POST请求返回405 Not Allowed
似乎不可能通过获取请求来执行此操作。请帮我修改POST请求!
以下是此方法的文档: Page 241 SetCameraSchedule https://usdl.synology.com/download/Document/DeveloperGuide/Surveillance_Station_Web_API_v2.6.pdf
GET func返回:Request-URI太大
def syn_cam_notification_shedule_set(cam_id, event_type, state):
cam_id = str(cam_id)
event_type = str(event_type)
state = str(state)
url = 'https://'+server+'/webapi/entry.cgi?version="1"&schedule=[{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"}]&eventType='+event_type+'&cameraId='+cam_id+'&api="SYNO.SurveillanceStation.Notification.Schedule"&method="SetCameraSchedule"'
print(url)
r = s.get(url, verify=False)
print(r.text)
POST func返回:405 Not Allowed
def syn_cam_notification_shedule_set(cam_id, event_type, state):
cam_id = cam_id
event_type = event_type
state = str(state)
url = 'https://'+server+'/webapi/entry.cgi'
data = {
'_sid': sid,
'version': '1',
'schedule': '[{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"},{"schedule":"'+state+'"}]',
'eventType': event_type,
'cameraId': cam_id,
'api': 'SYNO.SurveillanceStation.Notification.Schedule',
'method': 'SetCameraSchedule'
}
r = s.post(url, data=data, verify=False)
print(r.text)
这是我的其他代码:
s = requests.Session()
def syn_login():
url = 'https://'+server+"/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=6&account="+login+"&passwd="+password+"&session=SurveillanceStation"
r = s.get(url, verify=False)
r_json = json.loads(r.text)
if r_json['success']:
print(r_json['data']['sid'])
return r_json['data']['sid']
sid = syn_login()
答案 0 :(得分:0)
我通过修改Synology Nginx配置(通过SSH访问)来解决此问题
我创建了一个新文件/etc/nginx/conf.d/http.size.conf
并添加以下内容:
client_header_buffer_size 64k;
large_client_header_buffers 4 64k;
然后使用sudo synoservicectl --restart nginx
如果您感兴趣,我正在使用Python开发一个与Surveillance Station API交互的库:here