mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-21 06:52:13 +01:00
Adds standalone example
parent
39529ff76a
commit
3374df266a
@ -34,4 +34,41 @@ server {
|
|||||||
proxy_pass http://127.0.0.1:8100;
|
proxy_pass http://127.0.0.1:8100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Standalone Static Website
|
||||||
|
If you want to run BlueMap as a standlone static Website that does _not_ hit your Minecraft server, then you'd add something like this to your nginx config:
|
||||||
|
|
||||||
|
```nginx
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
server_name map.mydomain.com;
|
||||||
|
|
||||||
|
# optional if you want live player markers
|
||||||
|
# this still will hit your MC server
|
||||||
|
location /live/ {
|
||||||
|
proxy_pass http://127.0.0.1:8100;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /data/settings.json {
|
||||||
|
alias /path/to/bluemap/web/data/settings.json;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /data/textures.json {
|
||||||
|
alias /path/to/bluemap/web/data/textures.json;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /data/ {
|
||||||
|
gzip_static always;
|
||||||
|
gzip_proxied expired no-cache no-store private auth;
|
||||||
|
gunzip on;
|
||||||
|
alias /path/to/bluemap/web/data/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
alias /path/to/bluemap/web/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user