trying stuff out

This commit is contained in:
Mawoka
2022-04-15 19:09:44 +02:00
parent 685b1cdece
commit 4d61190d98
3 changed files with 28 additions and 18 deletions
+12 -4
View File
@@ -1,6 +1,14 @@
:8080 {
reverse_proxy * http://frontend:3000
reverse_proxy /api/* http://api:80
reverse_proxy /openapi.json http://api:80 # Only use if you need to serve the OpenAPI spec
reverse_proxy /socket.io/* api:80
reverse_proxy * http://frontend:3000
reverse_proxy /api/* http://api:80
reverse_proxy /openapi.json http://api:80 # Only use if you need to serve the OpenAPI spec
rewrite /socket.io /socket.io/
handle /socket.io/* {
uri strip_prefix /path
rewrite * /socket.io{path}
reverse_proxy api:80 {
header_up Host {host}
header_up X-Real-IP {remote}
}
}
}