Aller au contenu

« Dynmap » : différence entre les versions

De Nefald Wiki
Hiob (discussion | contributions)
Page créée avec « {{Infobox Plugin| image = Dynmap_logo.png| catégorie = map dynamique | dev = mikeprimm, FrozenCow2 | bukkit = dynmap | grade = Intendant | status = installé|}} <synta... »
 
Hiob (discussion | contributions)
Aucun résumé des modifications
Ligne 2 : Ligne 2 :




== Utilisez un serveur web externe ==
=== Lighttpd ===


;Dans <code>configuration.txt</code>, repmlacez
<syntaxhighlight lang="robots">
<syntaxhighlight lang="robots">
   - class: org.dynmap.InternalClientUpdateComponent
   - class: org.dynmap.InternalClientUpdateComponent
Ligne 12 : Ligne 15 :
   #  sendhealth: true
   #  sendhealth: true
   #  allowwebchat: false
   #  allowwebchat: false
</syntaxhighlight>
;par
<syntaxhighlight lang="robots">
#- class: org.dynmap.InternalClientUpdateComponent
  #  sendhealth: true
  #  allowwebchat: true
  #  webchat-interval: 5
  - class: org.dynmap.JsonFileClientUpdateComponent
    writeinterval: 1
    sendhealth: true
    allowwebchat: false
</syntaxhighlight>
To disable the internal updating mechanism and enable the json-file updating mechanism. This will write to the file standalone/dynmap_world.json in your web-path at an interval that is specified with writeinterval.
Copy your files in plugins/dynmap/web to a directory of your webserver. Change configuration.txt so that it points with both tilespath and webpath to the paths where you placed the web-files. For *nix
<syntaxhighlight lang="robots">
# The path where the tile-files are placed.
tilespath: /path/to/web/server/dynmap/web/tiles
# The path where the web-files are located.
webpath: /path/to/web/server/dynmap/web
</syntaxhighlight>
<syntaxhighlight lang="xorg_conf">
  server.modules = ( "mod_access",
  "mod_rewrite",
  "mod_proxy",
  "mod_fastcgi"
  )
</syntaxhighlight>
<syntaxhighlight lang="xorg_conf">
alias.url += ( "/dynmap/tiles/" => "/home/minecraft/minecraft_server/plugins/dynmap/web/tiles/" )
url.rewrite-once += (
        "^/dynmap/up/(.*)" => "/up/$1",
        "^/dynmap/standalone/(.*)" => "/standalone/$1"
)
$HTTP["url"] =~ "^/up/" {
        proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}
$HTTP["url"] =~ "^/standalone/" {
        proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}
</syntaxhighlight>
</syntaxhighlight>


[[Catégorie:Plugin installé]]
[[Catégorie:Plugin installé]]

Version du 14 juillet 2013 à 15:48


Dynmap
Dynmap
Plugin
Catégorie map dynamique [edit]
Développeur(s) mikeprimm, FrozenCow2
Bukkit dynmap
Nefald
Status installé [edit]
Grade requis Intendant
Article
Dernière révision 14/07/2013



Utilisez un serveur web externe

Lighttpd

Dans configuration.txt, repmlacez

<syntaxhighlight lang="robots">

 - class: org.dynmap.InternalClientUpdateComponent
   sendhealth: true
   allowwebchat: true
   webchat-interval: 5
 #- class: org.dynmap.JsonFileClientUpdateComponent
 #  writeinterval: 1
 #  sendhealth: true
 #  allowwebchat: false

</syntaxhighlight>

par

<syntaxhighlight lang="robots">

  1. - class: org.dynmap.InternalClientUpdateComponent
 #  sendhealth: true
 #  allowwebchat: true
 #  webchat-interval: 5
 - class: org.dynmap.JsonFileClientUpdateComponent
   writeinterval: 1
   sendhealth: true
   allowwebchat: false

</syntaxhighlight>


To disable the internal updating mechanism and enable the json-file updating mechanism. This will write to the file standalone/dynmap_world.json in your web-path at an interval that is specified with writeinterval.

Copy your files in plugins/dynmap/web to a directory of your webserver. Change configuration.txt so that it points with both tilespath and webpath to the paths where you placed the web-files. For *nix



<syntaxhighlight lang="robots">

  1. The path where the tile-files are placed.

tilespath: /path/to/web/server/dynmap/web/tiles

  1. The path where the web-files are located.

webpath: /path/to/web/server/dynmap/web </syntaxhighlight>


<syntaxhighlight lang="xorg_conf">

 server.modules = ( "mod_access",
 "mod_rewrite",
 "mod_proxy",
 "mod_fastcgi"
 )

</syntaxhighlight>

<syntaxhighlight lang="xorg_conf"> alias.url += ( "/dynmap/tiles/" => "/home/minecraft/minecraft_server/plugins/dynmap/web/tiles/" )

url.rewrite-once += (

       "^/dynmap/up/(.*)" => "/up/$1",
       "^/dynmap/standalone/(.*)" => "/standalone/$1"

)

$HTTP["url"] =~ "^/up/" {

       proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )

} $HTTP["url"] =~ "^/standalone/" {

       proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )

} </syntaxhighlight>