makes upload folder variable

This commit is contained in:
Christian Beutel
2024-03-29 14:44:37 +01:00
parent 033343e684
commit bd1dbcddae
4 changed files with 5 additions and 9 deletions
-3
View File
@@ -7,9 +7,6 @@ search/meilisearch
search/data.ms
search/dumps
web/uploads/*
web/cookie.txt
run.sh
build*.sh
+3 -2
View File
@@ -53,8 +53,9 @@ services:
BODY_SIZE_LIMIT: Infinity
PUBLIC_POCKETBASE_URL: http://db:8090
PUBLIC_DISABLE_SIGNUP: false
UPLOAD_USER: Flomp
UPLOAD_PASSWORD: 12345678
UPLOAD_FOLDER: /app/uploads
UPLOAD_USER:
UPLOAD_PASSWORD:
volumes:
- ./data/uploads:/app/uploads
ports:
+1 -1
View File
@@ -4,7 +4,7 @@
API_URL="http://localhost:3000/api/v1"
# Folder containing files to upload
UPLOAD_FOLDER="/app/uploads"
UPLOAD_FOLDER=$UPLOAD_FOLDER
# Credentials for login
USERNAME=$UPLOAD_USER
+1 -3
View File
@@ -62,9 +62,7 @@ export async function oauth_login(data: { name: string, code: string, codeVerifi
const r = await fetch('/api/v1/auth/oauth', {
method: 'POST',
body: JSON.stringify(data)
})
console.log(r);
})
if (r.ok) {
pb.authStore.loadFromCookie(document.cookie)