| layout | page |
|---|---|
| title | Reverse-Proxy |
| parent | Webserver |
| grand_parent | Wiki |
| nav_order | 3 |
Here are some examples how you can use an external webserver to reverse-proxy your BlueMap.
This is useful if you want to integrate your map in your website, or want to add SSL-capabilities.
- You have access to your servers shell (not only the minecraft-console).
- You have your external webserver like NGINX or Caddy already installed.
- The external webserver is running on the same machine as BlueMaps integrated webserver. (If that is not the case you'll need to
replace
localhostwith the correct ip in the examples below) - BlueMaps integrated webserver is running on port
8100. (Again, just replace8100with the actual port below)
Info:
If you want, you can tell the internal-webserver to only connect to one specific address like e.g.127.0.0.1, so it is no longer accessible from the outside (by default it just connects to all available interfaces): To do this, just open thewebserver.confand add theip: "127.0.0.1"setting somewhere. {: .info }
You have a normal website hosted on your webserver and want your map on /map (e.g https://mydomain.com/map)...
server {
...
location /map/ {
proxy_pass http://127.0.0.1:8100/;
}
}mydomain.com {
handle_path /map/* {
reverse_proxy 127.0.0.1:8100
}
}
You want BlueMap on a subdomain e.g. https://map.mydomain.com/...
server {
listen 80;
listen 443 ssl;
server_name map.mydomain.com;
location / {
proxy_pass http://127.0.0.1:8100;
}
}map.mydomain.com {
reverse_proxy 127.0.0.1:8100
}