Skip to content

Commit

Permalink
add mtweb (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Sep 20, 2023
1 parent 753d06d commit 1eb1212
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ http {
access_log off;
}

location /mtweb/ {
proxy_pass http://mtweb:8080/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log off;
}

location /ui/ {
proxy_pass http://ui:8080/;
proxy_buffering off;
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ services:
options:
max-size: 50m

mtweb:
image: ghcr.io/buckaroobanzay/minetest-web:v1.0
restart: always
environment:
ALLOWED_HOST: "minetest"
ALLOWED_PORT: "30000"

ui:
image: ghcr.io/minetest-go/mtui:1.45
restart: always
Expand Down Expand Up @@ -104,6 +111,7 @@ services:
- default
restart: always
depends_on:
- mtweb
- highscore
- mapserver
- wiki
Expand Down

0 comments on commit 1eb1212

Please sign in to comment.