stuff is now available on port 80 (/web/, /api/, /pad/)

This commit is contained in:
usr0
2026-02-12 10:37:23 +01:00
parent 76713e106f
commit 1c3ee99b74
3 changed files with 21 additions and 3 deletions

View File

@@ -79,5 +79,5 @@ services:
networks:
app-network:
external: false
#external: false
name: app-network

View File

@@ -7,6 +7,6 @@
</head>
<body>
<h1>Hello, people!</h1>
<p>coolz</p>
<p>this is the nginx index.</p>
</body>
</html>

View File

@@ -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;