diff --git a/dockercompose/docker-compose.yml b/dockercompose/docker-compose.yml index 90e1ab4..abef9a0 100644 --- a/dockercompose/docker-compose.yml +++ b/dockercompose/docker-compose.yml @@ -79,5 +79,5 @@ services: networks: app-network: - external: false + #external: false name: app-network \ No newline at end of file diff --git a/index.html b/index.html index 8c5e31f..d35ef28 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,6 @@

Hello, people!

-

coolz

+

this is the nginx index.

\ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 3c9d636..26c04f6 100644 --- a/nginx.conf +++ b/nginx.conf @@ -9,7 +9,25 @@ server { # Proxy API requests to the back service ########################## location /api/ { - proxy_pass http://back:8080/api/; + proxy_pass http://back:8080/; + 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 /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; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;