Skip to content

External WebServer Use

Rsl1122 edited this page Feb 23, 2018 · 23 revisions

Plan Header

External WebServer Use

Plan offers some limited support for use with an external WebServer running on the same machine as the minecraft server. (And possibly another machine if network mounted drives are available)

This is done by exporting the HTML files whenever Analysis or a command like /plan inspect is run.
Players page and scripts are exported when Plan enables.
The /players-page may contain dead links to Player pages because they are only exported when the player joins/leaves or the page is requested with /plan inspect

Enabling HTML Export

Analysis:
  ...
  Export:
    Enabled: false
    DestinationFolder: 'Analysis Results'
Setting Description
Export.Enabled Enables exporting the files to the DestinationFolder
Export.DestinationFolder Folder inside /plugins/Plan/ or a full path to the folder that the files should be exported to.

If your external web server is serving files from a folder on the machine, it is recommended to copy the full path to the DestinationFolder setting (For example 'C:\webserver\public_html' or 'etc/webserver/public_html')

Ensure that the user running the minecraft server has write & read permission to the folder you're exporting the files to, otherwise exceptions will occur when creating the files.

On Bungee HTML is only exported on Bungee even if the export is enabled on the Bukkit servers.

Disabling internal WebServer of Plan

On Bukkit servers it is possible to disable the WebServer.

If you're running Plan with Bungee, the internal WebServer is required for communication between Bukkit & Bungee and should not be disabled

WebServer:
  ...
  DisableWebServer: false
  ExternalWebServerAddress: "https://www.example.address"
Setting Description
DisableWebServer Disables the WebServer initialization (WebServer is not started on Enable)
ExternalWebServerAddress Address that is used instead of the WebServer address when the WebServer is offline.

ExternalWebServerAddress should be set to an address that allows appending of folder names such as /player/playername & /server etc.
If you export the html to a separate folder (eg. ../public_html/plan) The setting should reflect that ("https://www.example.address/plan")

Clone this wiki locally