diff --git a/data/nginx/nginx.conf b/data/nginx/nginx.conf index 7275e11..5075bd9 100644 --- a/data/nginx/nginx.conf +++ b/data/nginx/nginx.conf @@ -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; diff --git a/docker-compose.yml b/docker-compose.yml index a7a20e8..43ea22a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -104,6 +111,7 @@ services: - default restart: always depends_on: + - mtweb - highscore - mapserver - wiki