Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
cc69ca90
Commit
cc69ca90
authored
Jun 18, 2026
by
Kantz
Browse files
proxy pass für nginx in env ausgelagert
parent
0cfc4595
Changes
4
Hide whitespace changes
Inline
Side-by-side
math-tutor/docker/docker-compose.yaml
View file @
cc69ca90
...
...
@@ -31,6 +31,8 @@ services:
dockerfile
:
Dockerfile
args
:
VITE_API_BASE_URL
:
http://backend-openai:8000
env_file
:
-
../frontend/.env
depends_on
:
backend-openai
:
condition
:
service_healthy
...
...
math-tutor/frontend/.env-example
View file @
cc69ca90
VITE_FRONTEND_LANG="de"
VITE_SHOW_ARCHIVED_CHATS_BUTTON="true"
BACKEND_PROXY_PASS="http://backend-openai:8000"
\ No newline at end of file
math-tutor/frontend/Dockerfile
View file @
cc69ca90
...
...
@@ -14,4 +14,4 @@ RUN pnpm run build
FROM
nginx:1.27-alpine
COPY
--from=build /app/dist /usr/share/nginx/html
COPY
nginx.conf /etc/nginx/
conf.d
/default.conf
COPY
nginx.conf /etc/nginx/
templates
/default.conf
.template
math-tutor/frontend/nginx.conf
View file @
cc69ca90
...
...
@@ -8,7 +8,7 @@ server {
index
index.html
;
location
/api/
{
proxy_pass
http://backend-openai:8000
;
proxy_pass
$
{
BACKEND_PROXY_PASS
}
;
proxy_http_version
1
.1
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Real-IP
$remote_addr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment