diff --git a/nginx.conf b/nginx.conf index dd60544..ee0a187 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,6 +22,7 @@ http { gzip on; gzip_disable "msie6"; + client_max_body_size 4G; server { listen 80; diff --git a/web/src/api/config.ts b/web/src/api/config.ts index 4cc066e..c49d632 100644 --- a/web/src/api/config.ts +++ b/web/src/api/config.ts @@ -8,7 +8,7 @@ export async function setConfig(key: string, value: string) { const form = new FormData(); form.append('key', key); form.append('value', value); - return request('/config', { method: 'POST', formData: form }); + return request('/config/', { method: 'POST', formData: form }); } export async function getAllConfig() {