-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Add Wiki Page] Dynmap + Nginx + No Internal Web Server #2027
Comments
There's already a wiki for using external webserver in this wiki,m albeit not in full detail. More people seems to want to use the proxy instead of the JSON file way. https://github.com/webbukkit/dynmap/wiki/Setting-up-without-the-Internal-Web-Server |
I am well aware of that wiki page.
Also, the nginx proxy is broken in parts and does not work properly, for example, broken https and files 404ing because there's no good instructions on url rewrites and the Dynmap jetty instance isn't really configurable. |
For me, everything works well without using
and not using step 7. Is there any reason for their inclusion? I am just curious. I do wish the wiki was editable. |
I included step 7 because that's how my config is. It's not necessary and I'd assume most others have PHP set up, but I thought I'd throw it in just in case. |
@jwshields the map: |
Hi is it the same for you ? |
@Kervinou, Please create a separate issue. This issue is not about misc. Dynmap plugins. |
I agree that the current documentation on the subject is inefficient and lacks explanations on each and every changes to be made. |
Hello,
I'd like to propose a Wiki page for setting up Dynmap with Nginx and not using the internal Dynmap webserver.
The code blocks below are edited to my configuration, which works.
Prereqs:
minecraft
and have my server located in/home/minecraft/minecraft/
)/var/www/html/
)Instructions:
2.1. https://github.com/webbukkit/dynmap/blob/9f835b497808e81afc456487a83039524d1620e4/src/main/resources/configuration.txt
3.1. This disables the internal client update and enabled Dynmap writing to JSON
4.1 This section disables the internal web server, changes the path to where tiles & web files are stored
4.2 I did an absolute path for the web and tiles area, it's currently the default location, and is not needed to make this change, but I prefer having hardcoded paths
/etc/nginx/sites-enabled/default
)6.1. On my server I have dynmap at http://myserver/map/
6.2. Add a symlink to your www directory (this points nginx to
/home/minecraft/minecraft/plugins/dynmap/web/
when it receives a request for URI /map/ [ or on your system it's read as the file path/var/www/html/map/
] )6.2.1.
ln -s /home/minecraft/minecraft/plugins/dynmap/web/ /var/www/html/map/
6.3. In your Nginx site, add a location block for php (See codeblock 4)
7.1.
/etc/php5/fpm/pool.d/www.conf
7.2. Change the listen line to whatever port you want, only make sure it matches with what the Nginx block says
7.3.
listen = 127.0.0.1:8999
configuration.txt 1
(lines 40-96)
configuration.txt 2
(lines 308-331)
configuration.txt 3
lines 431-446
nginx site configuration
The text was updated successfully, but these errors were encountered: