diff --git a/classquiz/routers/quiz.py b/classquiz/routers/quiz.py index 5460ef6..d80f27a 100644 --- a/classquiz/routers/quiz.py +++ b/classquiz/routers/quiz.py @@ -75,7 +75,7 @@ async def get_public_quiz(quiz_id: str): quiz_id = uuid.UUID(quiz_id) except ValueError: raise HTTPException(status_code=400, detail="badly formed quiz id") - quiz = await Quiz.objects.get_or_none(id=quiz_id, public=True) + quiz = await Quiz.objects.get_or_none(id=quiz_id) if quiz is None: return JSONResponse(status_code=404, content={"detail": "quiz not found"}) else: diff --git a/frontend/Dockerfile b/frontend/Dockerfile index c4b3c29..ef1f393 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -11,7 +11,7 @@ ENV VITE_HCAPTCHA=ee81b2a1-acf3-4d20-b2a4-a7ea94c7eba5 # ENV VITE_SENTRY=https://75cb4ef1be624d8f81bbaf864b722f8a@glitch.mawoka.eu/2 ENV VITE_GOOGLE_AUTH_ENABLED=true ENV VITE_GITHUB_AUTH_ENABLED=true -ENV CAPTCHA_ENABLED=true +ENV VITE_CAPTCHA_ENABLED=true # change working directory WORKDIR /usr/src/app diff --git a/frontend/src/lib/config.ts b/frontend/src/lib/config.ts index 23ac02b..9b85372 100644 --- a/frontend/src/lib/config.ts +++ b/frontend/src/lib/config.ts @@ -6,4 +6,4 @@ export const google_auth_enabled = import.meta.env.VITE_GOOGLE_AUTH_ENABLED === 'true'; export const github_auth_enabled = import.meta.env.VITE_GITHUB_AUTH_ENABLED === 'true'; -export const captcha_enabled = import.meta.env.CAPTCHA_ENABLED === 'true'; +export const captcha_enabled = import.meta.env.VITE_CAPTCHA_ENABLED === 'true'; diff --git a/frontend/src/routes/docs/self-host/+page.svelte b/frontend/src/routes/docs/self-host/+page.svelte index 673cdb4..e28ec9e 100644 --- a/frontend/src/routes/docs/self-host/+page.svelte +++ b/frontend/src/routes/docs/self-host/+page.svelte @@ -72,6 +72,10 @@
VITE_MAPBOX_ACCESS_TOKEN: A Mapbox-token which is optional.VITE_HCAPTCHA: The hCaptcha-Siteky for captchasVITE_CAPTCHA_ENABLED: Set it to true, if the captcha should be
+ available
+ VITE_SENTRY: A Sentry-DSN for Sentry (optional)VITE_GOOGLE_AUTH_ENABLED: Set it to true, if Google-Auth is
@@ -163,7 +167,7 @@ services:
- redis
environment:
- ROOT_ADDRESS: "https://classquiz.mawoka.eu" # Base-URL (change it)
+ ROOT_ADDRESS: "https://classquiz.de" # Base-URL (change it)
DB_URL: "postgresql://postgres:classquiz@db:5432/classquiz" # don't change
MAIL_ADDRESS: "classquiz@mawoka.eu" # Email-Address (change it)
MAIL_PASSWORD: "MAIL_PASSWORD" # Email-Password (change it)