From bfc2253a27f8b78cedcf513517fc9a5dea8879b0 Mon Sep 17 00:00:00 2001 From: trochas Date: Thu, 12 Feb 2026 12:24:46 +0100 Subject: [PATCH] front marche sur localhost/ --- dockercompose/docker-compose.yml | 4 ---- nginx.conf | 17 +++++++---------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/dockercompose/docker-compose.yml b/dockercompose/docker-compose.yml index abef9a0..13af623 100644 --- a/dockercompose/docker-compose.yml +++ b/dockercompose/docker-compose.yml @@ -16,10 +16,6 @@ services: build: context: .. dockerfile: dockerfiles/front/Dockerfile - - ports: - - "5000:5000" - - "5080:80" volumes: - ../doodlestudent/front:/app environment: diff --git a/nginx.conf b/nginx.conf index 26c04f6..fab6b70 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,15 +17,6 @@ server { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Connection ""; } - location /web/ { - proxy_pass http://front:5080/; - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Connection ""; - } location /pad/ { proxy_pass http://etherpad:9001/; proxy_http_version 1.1; @@ -39,6 +30,12 @@ server { # FrontEnd returns ########################## location / { - try_files $uri $uri/ /index.html; + proxy_pass http://front:80/; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Connection ""; } }