Skip to content

Commit 7870348

Browse files
authored
Merge pull request #18 from HUBioDataLab/feat/log-visualizer
Log Visualizer
2 parents 32cbc62 + 8334903 commit 7870348

18 files changed

Lines changed: 3395 additions & 19 deletions

File tree

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ NEO4J_DATABASE_NAME="neo4j"
2424

2525
# Security
2626
CSRF_SECRET_KEY="your-secret-key-for-csrf-protection"
27+
28+
# Log Dashboard
29+
# Generate password hash: python -c "import bcrypt; print(bcrypt.hashpw(b'YOUR_PASSWORD', bcrypt.gensalt()).decode())"
30+
# Generate JWT secret: python -c "import secrets; print(secrets.token_urlsafe(32))"
31+
DASHBOARD_PASSWORD_HASH="$2b$12$REPLACE_WITH_BCRYPT_HASH"
32+
DASHBOARD_JWT_SECRET="REPLACE_WITH_RANDOM_SECRET"

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,23 @@ RUN rm -f requirements.txt
3030
COPY crossbar_llm crossbar_llm
3131
WORKDIR crossbar_llm
3232

33-
# Install & build frontend
33+
# Install & build main frontend
3434
WORKDIR frontend
3535
RUN /root/.local/share/pnpm/pnpm install
3636
RUN PUBLIC_URL=$PUBLIC_URL /root/.local/share/pnpm/pnpm build
3737
RUN cp -rf build /public
3838
WORKDIR ..
3939
RUN rm -rf frontend
4040

41+
# Install & build log dashboard
42+
WORKDIR log_dashboard
43+
RUN /root/.local/share/pnpm/pnpm install
44+
RUN PUBLIC_URL=$PUBLIC_URL/dashboard /root/.local/share/pnpm/pnpm build
45+
RUN mkdir -p /public/dashboard
46+
RUN cp -rf build/* /public/dashboard/
47+
WORKDIR ..
48+
RUN rm -rf log_dashboard
49+
4150
WORKDIR ..
4251
COPY startup.sh .
4352
RUN chmod +x startup.sh

0 commit comments

Comments
 (0)