stuff is now available on port 80 (/web/, /api/, /pad/)
This commit is contained in:
@@ -79,5 +79,5 @@ services:
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
external: false
|
||||
#external: false
|
||||
name: app-network
|
||||
@@ -7,6 +7,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, people!</h1>
|
||||
<p>coolz</p>
|
||||
<p>this is the nginx index.</p>
|
||||
</body>
|
||||
</html>
|
||||
20
nginx.conf
20
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;
|
||||
|
||||
Reference in New Issue
Block a user