refs #0
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ __pycache__/
|
|||||||
/postgres
|
/postgres
|
||||||
tags
|
tags
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
front/build/
|
||||||
|
|||||||
4
back/media/.gitignore
vendored
4
back/media/.gitignore
vendored
@@ -1,4 +0,0 @@
|
|||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
||||||
@@ -29,7 +29,7 @@ services:
|
|||||||
working_dir: /code
|
working_dir: /code
|
||||||
volumes:
|
volumes:
|
||||||
- ./front:/code
|
- ./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:
|
ports:
|
||||||
- "127.0.0.1:5173:5173"
|
- "127.0.0.1:5173:5173"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-auto": "^2.0.0",
|
"@sveltejs/adapter-node": "^1.3.1",
|
||||||
"@sveltejs/kit": "^1.5.0",
|
"@sveltejs/kit": "^1.5.0",
|
||||||
"svelte": "^3.54.0",
|
"svelte": "^3.54.0",
|
||||||
"vite": "^4.0.0"
|
"vite": "^4.0.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import adapter from '@sveltejs/adapter-auto';
|
import adapter from '@sveltejs/adapter-node';
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
access_log off;
|
access_log off;
|
||||||
|
client_max_body_size 200M;
|
||||||
|
|
||||||
include proxy_params;
|
include proxy_params;
|
||||||
proxy_send_timeout 600;
|
proxy_send_timeout 600;
|
||||||
@@ -26,3 +27,4 @@ server {
|
|||||||
proxy_pass http://127.0.0.1:5173;
|
proxy_pass http://127.0.0.1:5173;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user