makes upload folder variable
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,9 +7,6 @@ search/meilisearch
|
|||||||
search/data.ms
|
search/data.ms
|
||||||
search/dumps
|
search/dumps
|
||||||
|
|
||||||
web/uploads/*
|
|
||||||
web/cookie.txt
|
|
||||||
|
|
||||||
run.sh
|
run.sh
|
||||||
build*.sh
|
build*.sh
|
||||||
|
|
||||||
|
|||||||
@@ -53,8 +53,9 @@ services:
|
|||||||
BODY_SIZE_LIMIT: Infinity
|
BODY_SIZE_LIMIT: Infinity
|
||||||
PUBLIC_POCKETBASE_URL: http://db:8090
|
PUBLIC_POCKETBASE_URL: http://db:8090
|
||||||
PUBLIC_DISABLE_SIGNUP: false
|
PUBLIC_DISABLE_SIGNUP: false
|
||||||
UPLOAD_USER: Flomp
|
UPLOAD_FOLDER: /app/uploads
|
||||||
UPLOAD_PASSWORD: 12345678
|
UPLOAD_USER:
|
||||||
|
UPLOAD_PASSWORD:
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/uploads:/app/uploads
|
- ./data/uploads:/app/uploads
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
API_URL="http://localhost:3000/api/v1"
|
API_URL="http://localhost:3000/api/v1"
|
||||||
|
|
||||||
# Folder containing files to upload
|
# Folder containing files to upload
|
||||||
UPLOAD_FOLDER="/app/uploads"
|
UPLOAD_FOLDER=$UPLOAD_FOLDER
|
||||||
|
|
||||||
# Credentials for login
|
# Credentials for login
|
||||||
USERNAME=$UPLOAD_USER
|
USERNAME=$UPLOAD_USER
|
||||||
|
|||||||
@@ -63,8 +63,6 @@ export async function oauth_login(data: { name: string, code: string, codeVerifi
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
})
|
})
|
||||||
console.log(r);
|
|
||||||
|
|
||||||
|
|
||||||
if (r.ok) {
|
if (r.ok) {
|
||||||
pb.authStore.loadFromCookie(document.cookie)
|
pb.authStore.loadFromCookie(document.cookie)
|
||||||
|
|||||||
Reference in New Issue
Block a user