diff --git a/.gitignore b/.gitignore index 4280c2e..f79b6fb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ __pycache__/ /postgres tags package-lock.json +front/build/ diff --git a/back/media/.gitignore b/back/media/.gitignore deleted file mode 100644 index 5e7d273..0000000 --- a/back/media/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -# Ignore everything in this directory -* -# Except this file -!.gitignore diff --git a/docker-compose.yml b/docker-compose.yml index bf4362a..f35a3cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: working_dir: /code volumes: - ./front:/code - command: bash -c "npm install && npm run dev -- --host 0.0.0.0" + command: bash -c "npm install && npm run build && BODY_SIZE_LIMIT=200000000 PORT=5173 node build" ports: - "127.0.0.1:5173:5173" networks: diff --git a/front/package.json b/front/package.json index 8c4f198..da824ba 100644 --- a/front/package.json +++ b/front/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/adapter-auto": "^2.0.0", + "@sveltejs/adapter-node": "^1.3.1", "@sveltejs/kit": "^1.5.0", "svelte": "^3.54.0", "vite": "^4.0.0" diff --git a/front/svelte.config.js b/front/svelte.config.js index 301e785..6bfb3c4 100644 --- a/front/svelte.config.js +++ b/front/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-node'; /** @type {import('@sveltejs/kit').Config} */ const config = { diff --git a/nginx.test b/nginx.test index e2edaf1..4e94814 100644 --- a/nginx.test +++ b/nginx.test @@ -19,6 +19,7 @@ server { location / { access_log off; + client_max_body_size 200M; include proxy_params; proxy_send_timeout 600; @@ -26,3 +27,4 @@ server { proxy_pass http://127.0.0.1:5173; } } +