Skip to content

External WebServer Use

Risto Lahtela edited this page Jan 17, 2019 · 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

# -----------------------------------------------------
# These settings will make Plan write .js, .css, .json and .html files to some location on disk.
# Relative path will render to /plugins/Plan/path
# Make sure user running the server has write permissions to the path.
# -----------------------------------------------------
Export:
  HTML_Export_path: 'Analysis Results'
  JSON_Export_path: 'Raw JSON'
  Parts:
    JavaScript_and_CSS: false
    # Player pages/JSON are only written on join/leave.
    Player_pages: false
    Player_JSON: false
    Players_page: false
    Server_page: false
    Server_JSON: false
Setting Description
HTML_Export_path Folder inside /plugins/Plan/ or a full path to the folder that the HTML files should be exported to.
JSON_Export_path Folder inside /plugins/Plan/ or a full path to the folder that the JSON files should be exported to.
Parts Enables exporting the files to the respective export path

If your external web server is serving files from a folder on the machine, it is recommended to copy the full path to the HTML_Export_path 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:
  ...
  Disable_Webserver: false
  External_Webserver_address: "https://www.example.address"
Setting Description
Disable_Webserver Disables the WebServer initialization (WebServer is not started on Enable)
External_Webserver_address Address that is used instead of the WebServer address when the WebServer is offline.

External_Webserver_address 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