mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Revert c8399f2f959f2571fa10bf1a93a4255eb85b9639...3374df266a2a497ea79809625fb1e6c1c2fd798e on Reverse proxy BlueMap with NGINX
parent
3374df266a
commit
08f553907e
@ -34,41 +34,4 @@ server {
|
||||
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