Finalizes option to secure backend http endpoints with a token
- Also fixes to build commands in makefile
This commit is contained in:
parent
e6c2042df6
commit
4e20c4ac56
7 changed files with 24 additions and 17 deletions
|
@ -18,6 +18,7 @@ services:
|
|||
- SEARXNG_API_URL=null
|
||||
environment:
|
||||
SEARXNG_API_URL: "http://searxng:8080"
|
||||
SUPER_SECRET_KEY: ${SUPER_SECRET_KEY}
|
||||
OPENAI: ${OPENAI}
|
||||
GROQ: ${GROQ}
|
||||
OLLAMA_API_URL: ${OLLAMA_API_URL}
|
||||
|
@ -35,9 +36,9 @@ services:
|
|||
context: .
|
||||
dockerfile: app.dockerfile
|
||||
args:
|
||||
- SUPER_SECRET_KEY=${SUPER_SECRET_KEY}
|
||||
- NEXT_PUBLIC_API_URL=http://${REMOTE_BACKEND_ADDRESS}/api
|
||||
- NEXT_PUBLIC_WS_URL=ws://${REMOTE_BACKEND_ADDRESS}
|
||||
- NEXT_PUBLIC_SUPER_SECRET_KEY=${SUPER_SECRET_KEY}
|
||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||
depends_on:
|
||||
- perplexica-backend
|
||||
expose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue