Modified UI patch from dr|z3d
license for mods to zzzot by dr|z3d as per the overall Apache 2 license. - Add variables for $VERSION and $SITENAME - Enhance presentation of help page - Modify docroot/index.html post-install to contain b32 - Add custom CSS to docroot/tracker.css to allow customization - Only display warning about moving help.html if necessary - Add rewrite rules for /tracker, /tracker/, /tracker/index.html, /help and /help/ to jetty.xml - Replace jetty.servlet.DeaultServlet with I2PDefaultServlet in BaseContext.xml - Tidy CHANGES.txt and add to plugin/ Bump min I2P version to 0.9.31 for I2PDefaultServlet
This commit is contained in:
143
CHANGES.txt
143
CHANGES.txt
@ -1,86 +1,85 @@
|
||||
0.16.0
|
||||
2017-05-21
|
||||
Fix scrape response (requires I2P 0.9.30-8) (ticket #1994)
|
||||
2019-11-xx [0.17.0]
|
||||
- Add more configuration, customization, and registration info to help page
|
||||
- Change default sig type to EdDSA
|
||||
- Add variables for $VERSION and $SITENAME
|
||||
- Add custom CSS to docroot/tracker.css to allow customization
|
||||
- Tidy CHANGES.txt and add to plugin/
|
||||
- Changes for new installs only:
|
||||
- Enhance presentation of help page
|
||||
- Modify docroot/index.html post-install to contain b32
|
||||
- Only display warning about moving help.html if necessary
|
||||
- Add rewrite rules for /tracker, /tracker/, /tracker/index.html,
|
||||
/help and /help/ to jetty.xml
|
||||
- Replace jetty.servlet.DeaultServlet with I2PDefaultServlet in BaseContext.xml
|
||||
|
||||
0.15.0
|
||||
2017-03-11
|
||||
Increase default limits, set I2CP tag options
|
||||
Update eepsite configuration for Jetty 9 (I2P 0.9.30)
|
||||
2017-05-21 [0.16.0]
|
||||
- Fix scrape response (requires I2P 0.9.30-8) (ticket #1994)
|
||||
|
||||
0.14.0
|
||||
2015-05-28
|
||||
Remove use of deprecated SimpleScheduler (ticket #1523)
|
||||
Remove static structures
|
||||
Use RandomIterator for efficiency
|
||||
2017-03-11 [0.15.0]
|
||||
- Increase default limits, set I2CP tag options
|
||||
- Update eepsite configuration for Jetty 9 (I2P 0.9.30)
|
||||
|
||||
0.13.0
|
||||
2014-11-29
|
||||
Fix NPE on missing announce parameters
|
||||
Increase startup delay
|
||||
2015-05-28 [0.14.0]
|
||||
- Remove use of deprecated SimpleScheduler (ticket #1523)
|
||||
- Remove static structures
|
||||
- Use RandomIterator for efficiency
|
||||
|
||||
0.12.0
|
||||
2014-11-13
|
||||
Fix parameter decoding for scrape also
|
||||
Add caching for info hashes and peer ids
|
||||
Stop cleaner when plugin stops
|
||||
Move to the ClientApp interface, remove all static refs
|
||||
Attempt to fix crash after update
|
||||
Add zzzot.config file to set interval
|
||||
Don't overwrite index.html and robots.txt in the update
|
||||
Release all resources when shut down (requires 0.9.16-6 or higher)
|
||||
2014-11-29 [0.13.0]
|
||||
- Fix NPE on missing announce parameters
|
||||
- Increase startup delay
|
||||
|
||||
0.11.0
|
||||
2014-11-11
|
||||
Critical fix for announce parameter decoding, triggered by recent Jetty versions
|
||||
Change request queueing in jetty.xml (new installs only)
|
||||
SU3 plugin file format
|
||||
2014-11-13 [0.12.0]
|
||||
- Fix parameter decoding for scrape also
|
||||
- Add caching for info hashes and peer ids
|
||||
- Stop cleaner when plugin stops
|
||||
- Move to the ClientApp interface, remove all static refs
|
||||
- Attempt to fix crash after update
|
||||
- Add zzzot.config file to set interval
|
||||
- Don't overwrite index.html and robots.txt in the update
|
||||
- Release all resources when shut down (requires 0.9.16-6 or higher)
|
||||
|
||||
0.10.0
|
||||
2013-04-14
|
||||
Updates and migration for Jetty 7 (I2P 0.9.6)
|
||||
2014-11-11 [0.11.0]
|
||||
- Critical fix for announce parameter decoding, triggered by recent Jetty versions
|
||||
- Change request queueing in jetty.xml (new installs only)
|
||||
- SU3 plugin file format
|
||||
|
||||
0.9.0
|
||||
2013-01-25
|
||||
Add cache-control directives
|
||||
Set max Jetty to 6.99999
|
||||
2013-04-14 [0.10.0]
|
||||
- Updates and migration for Jetty 7 (I2P 0.9.6)
|
||||
|
||||
0.8
|
||||
2012-03-10
|
||||
fix comment in jetty.xml
|
||||
2013-01-25 [0.9.0]
|
||||
- Add cache-control directives
|
||||
- Set max Jetty to 6.99999
|
||||
|
||||
0.7
|
||||
2012-03-10
|
||||
Port to Jetty 6
|
||||
Replace QForwardHandler with RewriteHandler
|
||||
Use ${ant.home}/lib/ant.jar instead of pulling ant.jar from Jetty
|
||||
|
||||
0.6
|
||||
2011-12-31
|
||||
Set max jetty version 5.99999
|
||||
Add throttle options
|
||||
Stub out announce-to-seedless
|
||||
Seedless fixes, untested
|
||||
2012-03-10 [0.8]
|
||||
- Fix comment in jetty.xml
|
||||
|
||||
0.5
|
||||
2010-07-11
|
||||
Final compact response format
|
||||
2012-03-10 [0.7]
|
||||
- Port to Jetty 6
|
||||
- Replace QForwardHandler with RewriteHandler
|
||||
- Use ${ant.home}/lib/ant.jar instead of pulling ant.jar from Jetty
|
||||
|
||||
0.4
|
||||
2010-07-09
|
||||
Compact request/response support - may not be final format
|
||||
Fix NPE if no ip parameter
|
||||
2011-12-31 [0.6]
|
||||
- Set max jetty version 5.99999
|
||||
- Add throttle options
|
||||
- Stub out announce-to-seedless
|
||||
- Seedless fixes, untested
|
||||
|
||||
0.3
|
||||
2010-04-13
|
||||
Verify dest
|
||||
Add xfs check
|
||||
2010-07-11 [0.5]
|
||||
- Final compact response format
|
||||
|
||||
0.2
|
||||
2010-03-23
|
||||
Cache b64 dest strings
|
||||
Help typo fix (thx duck)
|
||||
Lots of seedless fixes
|
||||
Build cleanups
|
||||
2010-07-09 [0.4]
|
||||
- Compact request/response support - may not be final format
|
||||
- Fix NPE if no ip parameter
|
||||
|
||||
0.1
|
||||
2010-03-23
|
||||
2010-04-13 [0.3]
|
||||
- Verify dest
|
||||
- Add xfs check
|
||||
|
||||
2010-03-23 [0.2]
|
||||
- Cache b64 dest strings
|
||||
- Help typo fix (thx duck)
|
||||
- Lots of seedless fixes
|
||||
- Build cleanups
|
||||
|
||||
2010-03-23 [0.1]
|
||||
- Initial release
|
||||
|
61
README.txt
61
README.txt
@ -1,42 +1,45 @@
|
||||
ZzzOT I2P Open Tracker Plugin
|
||||
-----------------------------
|
||||
|
||||
This is a very simple in-memory open tracker, wrapped into an I2P plugin.
|
||||
|
||||
The plugin starts a new http server tunnel, eepsite, and Jetty server running at port 7662.
|
||||
The tracker status is available at http://127.0.0.1:7662/tracker/ .
|
||||
If other files are desired on the eepsite, they can be added at eepsite/docroot .
|
||||
The plugin starts a new http server tunnel, eepsite, and Jetty server running at
|
||||
port 7662. The tracker status is available at http://127.0.0.1:7662/tracker/
|
||||
If other files are desired on the eepsite, they can be added at eepsite/docroot
|
||||
|
||||
The open tracker code and jsps were written from scratch, but depend on some code
|
||||
in i2psnark.jar from the I2P installation for bencoding, and of course
|
||||
on other i2p libraries.
|
||||
See the license files in I2P for i2p and i2psnark licenses.
|
||||
There is also some code modified from Jetty 5.1.15.
|
||||
See LICENSES.txt for the zzzot and Jetty licenses.
|
||||
The open tracker code and jsps were written from scratch, but depend on some
|
||||
code in i2psnark.jar from the I2P installation for bencoding, and of course on
|
||||
other i2p libraries. See the license files in I2P for i2p and i2psnark licenses.
|
||||
There is also some code modified from Jetty 5.1.15. See LICENSES.txt for the
|
||||
zzzot and Jetty licenses.
|
||||
|
||||
I2P source must be installed and built in ../i2p.i2p to compile this package.
|
||||
|
||||
Sure, as a standalone program in its own JVM with Jetty, this would be a pig -
|
||||
you should use the C opentracker instead. But since you're already running
|
||||
the JVM and Jetty, running this in the same JVM probably doesn't hog to much more memory.
|
||||
you should use the C opentracker instead. But since you're already running the
|
||||
JVM and Jetty, running this in the same JVM probably doesn't hog to much more
|
||||
memory.
|
||||
|
||||
Valid announce URLs:
|
||||
/a
|
||||
/announce
|
||||
/announce.jsp
|
||||
/announce.php
|
||||
/tracker/a
|
||||
/tracker/announce
|
||||
/tracker/announce.jsp
|
||||
/tracker/announce.php
|
||||
/a
|
||||
/announce
|
||||
/announce.jsp
|
||||
/announce.php
|
||||
/tracker/a
|
||||
/tracker/announce
|
||||
/tracker/announce.jsp
|
||||
/tracker/announce.php
|
||||
|
||||
Valid scrape URLs:
|
||||
/scrape
|
||||
/scrape.jsp
|
||||
/scrape.php
|
||||
/tracker/scrape
|
||||
/tracker/scrape.jsp
|
||||
/tracker/scrape.php
|
||||
/scrape
|
||||
/scrape.jsp
|
||||
/scrape.php
|
||||
/tracker/scrape
|
||||
/tracker/scrape.jsp
|
||||
/tracker/scrape.php
|
||||
|
||||
The tracker also responds to seedless queries at
|
||||
/Seedless/index.jsp
|
||||
The tracker also responds to seedless queries at:
|
||||
/Seedless/index.jsp
|
||||
|
||||
You may use the rest of the eepsite for other purposes, for example you
|
||||
may place torrent files in eepsite/docroot/torrents.
|
||||
You may use the rest of the eepsite for other purposes; for example you
|
||||
may place torrent files in: eepsite/docroot/torrents/
|
||||
|
9
TODO.txt
9
TODO.txt
@ -1,5 +1,4 @@
|
||||
Configuration file:
|
||||
- interval
|
||||
- clean time
|
||||
- max peers in response
|
||||
- disable full scrapes
|
||||
@ -17,3 +16,11 @@ Bans:
|
||||
|
||||
Verifier:
|
||||
- Check dest vs. b32 in header
|
||||
|
||||
Feature requests:
|
||||
|
||||
- display infohashes and status for individual torrents i.e. number of active peers/seeds, total number of downloads: http://bittorrent.org/beps/bep_0048.html
|
||||
- optional mapping of hashes to torrent names
|
||||
- optional clustering of open trackers to permit syncing
|
||||
- blacklists for hashes/torrents
|
||||
- optional password protection for site and/or admin section
|
||||
|
15
build.xml
15
build.xml
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project basedir="." default="all" name="zzzot">
|
||||
<property file="override.properties"/>
|
||||
|
||||
|
||||
<target name="all" depends="clean,plugin" />
|
||||
|
||||
<target name="war" >
|
||||
<ant dir="src" target="build" />
|
||||
</target>
|
||||
|
||||
<target name="plugin" depends="war">
|
||||
<target name="plugin" depends="war">
|
||||
<delete>
|
||||
<!-- in installer but not update -->
|
||||
<fileset dir="plugin/" includes="i2ptunnel.config zzzot.config eepsite/docroot/index.html eepsite/docroot/robots.txt" />
|
||||
@ -16,12 +16,14 @@
|
||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||
<!-- get version number -->
|
||||
<buildnumber file="scripts/build.number" />
|
||||
<property name="release.number" value="0.16.0" />
|
||||
<property name="release.number" value="0.16.1" />
|
||||
|
||||
<!-- make the update xpi2p -->
|
||||
<!-- this contains everything except i2ptunnel.config -->
|
||||
<copy file="LICENSE.txt" todir="plugin/" overwrite="true" />
|
||||
<copy file="README.txt" todir="plugin/" overwrite="true" />
|
||||
<copy file="CHANGES.txt" todir="plugin/" overwrite="true" />
|
||||
<copy file="scripts/tracker.css" todir="plugin/eepsite/docroot/" overwrite="true" />
|
||||
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
<arg value="update-only=true" />
|
||||
@ -57,7 +59,6 @@
|
||||
<!-- Files in installer but not update. Be sure to Add to delete fileset above and clean target below -->
|
||||
<copy file="scripts/i2ptunnel.config" todir="plugin/" overwrite="true" />
|
||||
<copy file="scripts/zzzot.config" todir="plugin/" overwrite="true" />
|
||||
<copy file="scripts/index.html" todir="plugin/eepsite/docroot/" overwrite="true" />
|
||||
<copy file="scripts/robots.txt" todir="plugin/eepsite/docroot/" overwrite="true" />
|
||||
<mkdir dir="plugin/eepsite/docroot/torrents/" />
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
@ -72,13 +73,19 @@
|
||||
|
||||
<target name="clean" >
|
||||
<ant dir="src" target="clean" />
|
||||
<defaultexcludes remove="**/*~"/>
|
||||
<delete>
|
||||
<fileset dir="." includes="*/*.~ **/*.*~ */**/*.*~ *.*~" />
|
||||
</delete>
|
||||
<delete file="plugin/i2ptunnel.config" />
|
||||
<delete file="plugin/plugin.config" />
|
||||
<delete file="plugin/zzzot.config" />
|
||||
<delete file="plugin/eepsite/docroot/index.html" />
|
||||
<delete file="plugin/eepsite/docroot/robots.txt" />
|
||||
<delete file="plugin/eepsite/docroot/tracker.css" />
|
||||
<delete file="plugin/lib/zzzot.jar.pack" />
|
||||
<delete file="plugin/eepsite/webapps/tracker.war.pack" />
|
||||
<delete file="plugin/CHANGES.txt" />
|
||||
<delete file="plugin/LICENSE.txt" />
|
||||
<delete file="plugin/README.txt" />
|
||||
<delete file="zzzot.xpi2p" />
|
||||
|
@ -16,7 +16,7 @@ to serve static html files and images.
|
||||
<Arg>max-age=3600,public</Arg>
|
||||
</Call>
|
||||
<Call name="addServlet">
|
||||
<Arg>org.eclipse.jetty.servlet.DefaultServlet</Arg>
|
||||
<Arg>net.i2p.servlet.I2PDefaultServlet</Arg>
|
||||
<Arg>/</Arg>
|
||||
</Call>
|
||||
</Configure>
|
||||
|
@ -1,74 +1,384 @@
|
||||
<html><head><title>ZzzOT Plugin Help</title></head>
|
||||
<body style="background-color: #ddd; color: #a30;">
|
||||
<h2>Welcome to the ZzzOT I2P Plugin!</h2>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
|
||||
A new eepsite tunnel and Jetty server have been started for your open tracker.
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ZZZOT OPENTRACKER | HELP</title>
|
||||
<style type="text/css">
|
||||
html,
|
||||
body {
|
||||
min-width: 600px;
|
||||
min-height: 100%;
|
||||
line-height: 1.4;
|
||||
font-size: 14pt;
|
||||
font-family: "Droid Sans", "Open Sans", "Noto Sans", Ubuntu, "Segoe UI", "Lucida Grande", "DejaVu Sans", Helvetica, sans-serif;
|
||||
color: #ccc;
|
||||
background: #111;
|
||||
overflow-x: hidden;
|
||||
scrollbar-color: #222 #111;
|
||||
}
|
||||
|
||||
<p><a href="/tracker/index.jsp">Click here to see the current stats</a>.
|
||||
This link is also at the top of your router console when ZzzOT is running.
|
||||
@supports (background-blend-mode: overlay) {
|
||||
html, body {
|
||||
background: repeating-linear-gradient(45deg, #333, #111 2px, #111 3px),
|
||||
repeating-linear-gradient(135deg, #444, #333 2px, #222 3px) #111;
|
||||
background-blend-mode: overlay, normal;
|
||||
background-size: 100% 100%, 100% 100%;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
<p>Report bugs or add comments on
|
||||
<a href="http://zzz.i2p//forums/16">the plugin forum on zzz.i2p</a>.
|
||||
::selection,
|
||||
::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #431;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
<p><b>This help file is $PLUGIN/eepsite/docroot/help.html, you should probably move it
|
||||
outside of the document root before you announce your eepsite as it may contain your user name.</b>
|
||||
code::-moz-selection,
|
||||
#b64::-moz-selection,
|
||||
code::selection,
|
||||
#b64::selection {
|
||||
background: #150;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
<h3>Eepsite Key and Helpful Hints for I2P</h3>
|
||||
p,
|
||||
li,
|
||||
code {
|
||||
text-shadow: 0 1px 1px #000;
|
||||
}
|
||||
|
||||
<p>Your Base 32 address is <a href="http://$B32/">$B32</a>.
|
||||
Others may access your eepsite using this address, even if you do not publish a hostname.
|
||||
<p>Once you decide on a host name, you may
|
||||
<a href="http://127.0.0.1:7657/susidns/addressbook.jsp?book=private&destination=$B64">add the key to your local addressbook here</a>.
|
||||
<p>Your Base 64 key is: <textarea rows="1" style="height: 3em;" cols="40" readonly="readonly" wrap="off">$B64</textarea>
|
||||
<p>To generate a registration authentication string for your host name, run the following command line:
|
||||
<br><tt>java -jar $I2P/lib/i2p.jar privatekeyfile -a your-hostname.i2p $PLUGIN/eepPriv.dat</tt>
|
||||
<br>You will need this authentication string to register a hostname at <a href="http://stats.i2p/i2p/addkey.html">stats.i2p</a>.
|
||||
<p>Your private key file is $PLUGIN/eepPriv.dat - back it up!!!
|
||||
#container {
|
||||
padding: 5% 15%;
|
||||
}
|
||||
|
||||
<p>The supported announce URLs are:
|
||||
<ul>
|
||||
<li><a href="http://$B32/a">http://$B32/a</a>
|
||||
<li><a href="http://$B32/announce">http://$B32/announce</a>
|
||||
<li><a href="http://$B32/announce.jsp">http://$B32/announce.jsp</a>
|
||||
<li><a href="http://$B32/announce.php">http://$B32/announce.php</a>
|
||||
<li><a href="http://$B32/tracker/a">http://$B32/tracker/a</a>
|
||||
<li><a href="http://$B32/tracker/announce">http://$B32/tracker/announce</a>
|
||||
<li><a href="http://$B32/tracker/announce.jsp">http://$B32/tracker/announce.jsp</a>
|
||||
<li><a href="http://$B32/tracker/announce.php">http://$B32/tracker/announce.php</a>
|
||||
</ul>
|
||||
<p>The supported scrape URLs are:
|
||||
<ul>
|
||||
<li><a href="http://$B32/scrape">http://$B32/scrape</a>
|
||||
<li><a href="http://$B32/scrape.jsp">http://$B32/scrape.jsp</a>
|
||||
<li><a href="http://$B32/scrape.php">http://$B32/scrape.php</a>
|
||||
<li><a href="http://$B32/tracker/scrape">http://$B32/tracker/scrape</a>
|
||||
<li><a href="http://$B32/tracker/scrape.jsp">http://$B32/tracker/scrape.jsp</a>
|
||||
<li><a href="http://$B32/tracker/scrape.php">http://$B32/tracker/scrape.php</a>
|
||||
</ul>
|
||||
#panel {
|
||||
padding: 20px 40px 15px;
|
||||
font-size: 85%;
|
||||
text-align: justify;
|
||||
border: 1px solid #555;
|
||||
box-shadow: inset 0 0 0 1px #111, inset 0 0 2px 1px #444, 0 0 2px 2px #000;
|
||||
background: #181818;
|
||||
background: repeating-linear-gradient(to right, rgba(255, 255, 255, .05), rgba(0, 0, 0, .08) 2px),
|
||||
repeating-linear-gradient(to bottom, #222, #111 2px);
|
||||
background-blend-mode: overlay;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
<h3>Configuration and Customization</h3>
|
||||
@supports not (-moz-appearance: none) {
|
||||
#panel {
|
||||
background: repeating-linear-gradient(to bottom, #222, #111 2px);
|
||||
}
|
||||
}
|
||||
|
||||
<p>Your eepsite tunnel is configured for 2 inbound and 2 outbound tunnels, 3 hops each.
|
||||
You may change tunnel settings by editing $PLUGIN/i2ptunnel.config and restarting the plugin.
|
||||
The tunnel will not appear in <a href="http://127.0.0.1:7657/i2ptunnel/index.jsp">i2ptunnel</a>.
|
||||
<i>If your tracker gets over 1000 peers, you will probably want to increase the number of tunnels.</i>
|
||||
#sitename,
|
||||
#sitename:hover,
|
||||
#sitename:focus {
|
||||
margin: -8px 0 -14px;
|
||||
display: inline-block;
|
||||
font-size: 500%;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
<p>The only configuration for zzzot itself is the "interval", which tells the clients how long to
|
||||
wait between announces. The default is 1620 seconds (27 minutes).
|
||||
<i>The easiest way to reduce the load on your tracker is to increase the interval.</i>
|
||||
To do so, edit the file $PLUGIN/zzzot.config, then stop and restart the plugin.
|
||||
hr.heading {
|
||||
margin: -10px 0 15px;
|
||||
height: 1px;
|
||||
color: transparent;
|
||||
border: none;
|
||||
background: repeating-linear-gradient(to right, rgba(255, 255, 255, .05), rgba(0, 0, 0, .08) 2px),
|
||||
linear-gradient(to right, #888, #666 20%, rgba(0, 0, 0, 0) 90%);
|
||||
filter: drop-shadow(0 1px 1px #000);
|
||||
animation: ease-out underline 1s forwards;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
<p>The Jetty webserver port is 7662. If you must change it, edit jetty.xml, i2ptunnel.config, and plugins.config
|
||||
in the directory $PLUGIN. Then stop and restart the plugin.
|
||||
@keyframes underline {
|
||||
from {
|
||||
width: 0;
|
||||
}
|
||||
to {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
<p>Your eepsite home page is $PLUGIN/eepsite/docroot/index.html,
|
||||
you may edit it to add information about your tracker or links to additional content.
|
||||
#v {
|
||||
margin-left: -10px;
|
||||
}
|
||||
|
||||
<p>Your eepsite document root is $PLUGIN/eepsite/docroot/,
|
||||
you may put other files there if you wish to have additional content on your eepsite.
|
||||
h2,
|
||||
h3 {
|
||||
color: #ccc;
|
||||
text-shadow: 0 0 2px #181818, 0 3px 1px #000;
|
||||
}
|
||||
|
||||
<p>As you probably know, an open tracker does not require torrents to be registered,
|
||||
and it does not host torrent files. You can, however, host torrent files elsewhere on
|
||||
the eepsite, for example at <a href="http://$B32/torrents/">/torrents</a>.
|
||||
h2 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
</body></html>
|
||||
h3 {
|
||||
padding: 5px 0 0;
|
||||
}
|
||||
|
||||
h2::first-letter,
|
||||
h3::first-letter {
|
||||
font-size: 114%;
|
||||
}
|
||||
|
||||
a:link,
|
||||
.urls li {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #c4ad9d;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#local {
|
||||
font-weight: normal;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #a98770;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: #e88b44;
|
||||
}
|
||||
|
||||
code,
|
||||
#b64 {
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
font-family: "Droid Sans Mono", "Noto Mono", "DejaVu Sans Mono", "Lucida Console", monospace;
|
||||
font-size: 90%;
|
||||
color: #292;
|
||||
-moz-user-select: all;
|
||||
-webkit-user-select: all;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
#b64 {
|
||||
margin-bottom: -5px;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
white-space: no-wrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#b64:focus {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
overflow: normal;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.warn {
|
||||
margin-top: 18px;
|
||||
padding: 15px 18px 15px 54px;
|
||||
line-height: 1.2;
|
||||
border: 1px solid #900;
|
||||
border-radius: 4px;
|
||||
box-shadow: inset 0 0 0 1px #000, inset 0 0 2px 1px #900, 0 0 2px 1px rgba(0, 0, 0, .2);
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAhCAMAAAEaI3KMAAAACXBIWXMAAA7DAAAOwwHHb6hkAAACbVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQECAgIDAAADAgIEBAQGBAQGBQUGBgYHAQAHBwcICAgJCQkKAQAKCgoLAQALCwsMCwsODg4PDw8QAQAQAgASAAASAwAVCwsaGhobDw8bExMbGxskHx8mJiYpAwAqKiotKysuAQAwLi4yMjI8HR08JiY9CAA/CAA/Pz9BQUFDQ0NKBwBLPDxLS0tTAwBhBABmZmZpAABpPT1tEABvEAB4RUV4WFh4a2uCBwCECACGhoaHeHiUAQCWFgCaFgCclZWkDgClVFSlb2+0lZW0tLS2FQC4BQC9vb3GGQDGxsbIVlbKWFjMFwDOCgDPfn7RFADUrKnV1dXWCgDWEgDWLR7YBATYEADYg4PZ2dnaAwPakozbEADbp6fbysrb29vezc3e1NTe3t7hDQDhIxjk5OTlb2nlcWvmCwDqwL7qysnq6urrCQDrDAPrDgbtAADtgIDv7+/wQkLwS0bxBgDxPTjzBADzhITzq6vz8/P1oJ/1qKf19fX2BAD209P51tb7AgD7HBv77+/7+/v8/Pz/AAD/DAz/amr/bm7/cnL/enr/goL/ior/k5P/lJT/mJj/m5v/o6P/q6v/s7P/t7f/uLj/u7v/vr7/w8P/xcX/yMj/y8v/09P/2Nj/29v/4+P/5OT/6en/6ur/6+v/8fH/8vL/9PT//Pz//f3////ZtbwoAAAAJXRSTlMAAwYMEhUYGyEkMDxCS1ppeISHkJacpairtMPP2Nvk5+3w8/n8UHR7egAAAp9JREFUGBmFwYlDi2EcB/BvB6lRjoxOS/1ykzPkFrmv3GdCyZEzLMRcrZdhjjG3MV4du/S2aU1puXn+Js87G/WWfD4I8W4FkMpaARgEwYAexAHQgFM1gbOPtAPThPUCQNxQyOb5w/Db2aYsKR4y62txgWglILosaDVkQxAS5p+HoK1NXhUC4qVxjccRYG/NYvZUcGQVF4uvreAMgrBeEAyTgNVlQb2QRkE9EaK+fFENhbQWToMOyO3++dPtJrQz2+lkmdnM6ZyJkJgN9+oYmzuZsbp7G2IQ0P+A+b7JZCooMJlMD8wH+oNLOaM7X8GtWlXBndedSQGSSztJRoiKekNpypcxUEh66X+RhA6i1rS0tKzpgfbI6/3q9RLaidvrbmTv3Hvj8NcoSbpEJyVpBP5IfORsfkIHm513ExEUucRuZ4xuMrt9SQR+yzhd+5kxYuxz7bkMBMQWWl+JokiiKL6yFsZCRmaziSMTZzYTuIRThmsCRwJ31XAsAQjP1ekqZFQh0+lyw5FeppSO5aVKy6AmpUFQitIs2rMwLQr/oaKdbW1t20iFbsVRyQdZCcWhG+rRF3w+33ufz3dhtBr/EpY057HH4/Ezv8fjeTwnKQxditQsbeA+5VP+xwZuqSYSXYjJ2OJyueq/HxpP2fu+1btcro0ZMegkloodDsfbH4wNo4kn2Y+3DoejmGKhED/8iM1mkxg3legNY0yy2WyHhw9AB4k5d6qrayQmm0+zmEyqqa6+k5OIvyJS8x5aLJZnzwNW0ornAU8tFsvDvNQIBEWnrzMajbdv3FS6fstoNK5Nj0ZAH9qh1+urrlQGZVJmZdCVKr1ev536gOtHRVqttvxE18q1Wm0R9QUGTth/9H/2j43HoBmbd+3u3q5N0wf/ApzdYLKMtOjLAAAAAElFTkSuQmCC) 12px center no-repeat, repeating-linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(64, 0, 0, .2) 2px), linear-gradient(to bottom, #222, #111);
|
||||
background-size: 32px auto, 100% 100%, 100% 100%;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.emphasis {
|
||||
margin-top: 4px;
|
||||
display: inline-block;
|
||||
line-height: 110%;
|
||||
color: #900;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
ul#config {
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
#config li {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#config li br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.urls li {
|
||||
margin-left: -15px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.urls li::before {
|
||||
margin: 2px 0 -3px;
|
||||
width: 22px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
content: "";
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABEVBMVEUAAAAAAAAAAAAAAAAAAABDREYAAAAAAAAAAACDhYgAAABmaGuPkZRZWlyFh4oAAABkZWcAAAAAAABRUlRiY2ZPUVN4eXtydHdcXV9YWVtCQ0QxMjM2Nzh6fH6DhIcAAAAAAAB3eXt3enxoaWtlZ2p2d3pwcnWCg4Z7fH5OTlBnaWtdXmAxMTJXWFoyMjRAQEIAAABeYGJmZ2qIio2jpKfx8vOKjZDLzM7v7+6wsrWdnqCAgYSbnJ6Nj5KMjY58foFxcnXp6urh4uTOz9KztreYmp2QkJOFh4uSlJaPkJF/f4NVVljR0tS/vsC8vsCsrrKgoqSXl5uQkpN6e31ub3JsbXBdYGJaW12/v8G+vb+SlJjRk2qVAAAAMnRSTlMABAwWJ4UHQiBhEWDohWEw7ToU8e3r5dKRg3tpXz05Nw/v7ejEvrGtfHRtaGZXV0w5MLROkgwAAAE3SURBVDjLndHXcoJAFIBhlyWEGA2WJJY003tjAQ2hKQIGe4tJ3v9BsjDOeLEcLzy335nZPfOnNpzTjEnILYIY7SnNVm/g2QLgO4ra/jPHw8kNgvyDlJ9KvuJwoGcl/sUezQtJ78fO17i7X0/G7MJJ5BWeQ7thPcixC0Km2Sb3kX/WNfk4zSykzVZn6lwKsW+J7J1Yc21dXTzHziccgYlvNKzu0lHCwnnkPy7k6FBvWN+6Eazxr6Izk/ePqDP9NHJB/WCbzplInenn+gb1vIgxTgsJ/To2/V8xjxHUZxr9zxFBrzqq1dVnGOpXecst5L4B9svyolQNXagfdU54XNOvHPUF+5Ge+VqjDvcbjEvvDyHYr3DtDX27D3qKk+yJMvICyFMI56+c+aofOwKWVv0SB3GFuN9m8w950jtLubKVyAAAAABJRU5ErkJggg==) left center no-repeat;
|
||||
background-size: 16px 16px;
|
||||
filter: sepia(1) saturate(.4) drop-shadow(0 1px 1px #000);
|
||||
}
|
||||
|
||||
.external::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
vertical-align: middle;
|
||||
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAC61BMVEUAAAAAAAAAAAAAAAAAAAAAAAAYf7wbfa8AAAACDBESfbwZbpwVd64dgLITfrUVfLcadqkVX4YXZ5AKLT8MNUkEExsAAAAAAAAWcqQMOlIUaJQeeqoXerMXeq0WfrgVfrMUYYsUYYgypuIintwso+AmoN6f6QAYmNk5q+U1qOUem9oVgcoZgrec5gCa5QCN2wC/6P0yp+6h6wGd6ACY4wCQ3gBRufApot4bmtwSldcLktYDjdUbhL4fhrsehbmu7Rqq8QCl7QCV4gA6qv6m3Pmg2vlJs/RkwPI5q+xGsucZmOc/ruYHjt7i/Jmx7iyV3wCw4v+L0P/G6v665f2s4PzQ7fu04/uX1/iHz/V7y/U4qfROt+xHsuwRlN0NfMHj/3iK2hx2zhmS3wGe2v8vpP+l3/6X1P1Wuf2X2fyQ1PkooPUamfJcve8rouQRlNY/m84fjsUSiMVVu7RjxKdJtZM/rYbS9oPb+oLT+GnF81eD10W48Dm38iGf5x2R3xKw8wWc4QKG1wKe6AC15P9gvv8dmv/a8f56yf6Gzvo8rfduyPV0x/JVvPKv4+4Oku0noes+relxveQmn+S95+MRlOOn399ruN9Xu9NAr9Akls8Zks8Ih85isszr/sEOfcHJ8btOt7eb3rQnobKHy7BAr7BntKpOuaVNuJ5xzZlkw5fl/o+q34+g145dwIbG7oV20YGBzXpYvm+w5m1vym1uymTO+FyS3FZ1z0zB9EWP2kOc5kKx6UF2zjrB9DlqyDh40TSE1y6l5Rao7BGp7w990wuq7Adtxf+w3+kwn+eY2ONiv9qIz9ktndVUqtRjwdMnlNPF7NENgtG96c4Li8tvyMcwpcZOtr/h+76157wUjLwdm7tEnbbl/LFTqazV9Kq97qUnn6Momp9Xu54fnJ6Pzpt6wJmH1YJiw3k6rHbh/3V/13SJ22V70l2b4Fy27Fi68FZTuVNcv0ij4TprySaF1xSU4RCc6Aie4Qa4/QHF9Rd9AAAAInRSTlMABhYPNh3q3EIv07J37OfC0ZmNWUxLOikiGQ7NnZ2ZmSkpxqDDBgAAAzRJREFUeNplklNgJEsAAHeWcc56DNa2bdsb27Zztm3bNp9t2zY+r2f2nPqtajfqPjMy0rYUArakZcxAjWVammL3oc4iQOeh3YrsaY9o6CnG1z8ccB7o6v71zIXL3V07FU9CD/mspsXvbXY6Vz63utJbtUd3vedIEx560K/hbP7Y+aknYAjXzJtbf1Yn/PPIJlDc9/45QWfXSo/BWOl9aecs/boRofvEvQJ6oqliTtDH2fpmoKzSe8KlPrPWUn58hH3wo8eTRQ7DyAH+9c7T75e9ELn4ywDp2rV1e0uEuw7Sn0YmyF5eDY/vPt3T81tfv/rbFweL9Vxu7Tsl17/JhqeYrqo2+jj+mTM/O3euz6V+5hhrP+tdS24D8dbIRfp0MEHGKwv8/lDI41l8GfZvHx1t08coufkr6q4Mf5IBoSDC8kWcUCBQUbG636W+MVC1jzm4fz41N59o62AfS4NQGEZUFDIYjGXV2/vVN3gkUi9LwDzFBYFkCfs8HYNCMxaIDMZwuMa7fegmj8Rn/iMQFH/JzRXnSZaU/EdHg8AsioZrIvPmujRaOBCwdCdj1HwQrPp9GAkWicyRSDT67M1kwGKe0sNbyJMU7EgGpn0m88KF5lk/JQMmSW+hghVoZKnDoYAD6/9rTfXm+qpXh7Q8sEnS2Rg8AQgaZXIVCAjPX/jRFI/HRaIBjVbbe3JwGzgCMoFM/hYBjcJMeK3taCJhTcRNbec1P5eXbztcu3TFnQlaJmBQUKrCYllmt1qtifmtQ/+2Fu/5rvRSnc22qsAhlytTwU3iCC9TKBQ7YFmstZevOTx7dnv78R0djs+/3/gYDrwWZpIql0qlwFDBI+4d3VXMEujcbrfgK8UkDPzcuPTm3Ls0NCyta+frSoVsNvuvN9LBBABMaub6/CRiMTHPdpUFe+GtD/CpmOSXQ2Mz1xNh8gAS29VRMIO7ZCMeiwYTJIspmc3A0QBkckHBpb8FrD9a8FMQf3eOdOUGCRkglTY6PuRf+YKejoy/X6ROHKds3iCVymQyeUcLfdzE1Ac9KDA47OTxBJVKqVQpCeMnY3EY2D+STMWmIGCnjtVIAmHQCBjoAX0bgdwQZFvzARQAAAAASUVORK5CYII=) center top no-repeat;
|
||||
background-size: 12px 12px;
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.external:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@supports (-webkit-text-stroke-width: 1px) {
|
||||
|
||||
#sitename,
|
||||
#sitename:hover,
|
||||
#sitename:focus {
|
||||
background: #731;
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .5) 2px),
|
||||
linear-gradient(to bottom, rgba(255, 96, 0, .2), rgba(0, 0, 0, .9) 100%),
|
||||
linear-gradient(to bottom, #210, #310 15%, #fff 50%, #310 80%);
|
||||
-moz-background-clip: text !important;
|
||||
-webkit-background-clip: text !important;
|
||||
background-clip: text !important;
|
||||
-moz-text-fill-color: transparent !important;
|
||||
-webkit-text-fill-color: transparent !important;
|
||||
text-fill-color: transparent !important;
|
||||
filter: drop-shadow(0 0 2px #000);
|
||||
-webkit-text-stroke-color: #999;
|
||||
-webkit-text-stroke-width: 0.02em;
|
||||
}
|
||||
|
||||
#sitename:hover,
|
||||
#sitename:focus {
|
||||
background: #951;
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .3) 2px),
|
||||
linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(0, 0, 0, .7) 100%),
|
||||
linear-gradient(to bottom, #930, #d50 15%, #fff 50%, #930 80%, #000 100%, #ff0 150%);
|
||||
filter: drop-shadow(0 0 2px #b00);
|
||||
-webkit-text-stroke-color: #bbb;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1200px) {
|
||||
#help {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.external::before {
|
||||
margin-left: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1400px) {
|
||||
#container {
|
||||
padding: 2% !important;
|
||||
}
|
||||
|
||||
#panel {
|
||||
padding: 20px 35px 10px;
|
||||
}
|
||||
|
||||
#sitename,
|
||||
#sitename:hover,
|
||||
#sitename:focus {
|
||||
margin: -14px 0;
|
||||
}
|
||||
|
||||
code:not(#b64) {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
br + code {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
#config li br {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body id="help">
|
||||
<div id="container">
|
||||
<div id="panel">
|
||||
<a href="http://127.0.0.1:7662/" title="OpenTracker homepage" alt="OpenTracker homepage"><span id="sitename">ZZZOT</span></a>
|
||||
<span id="v">$VERSION</span>
|
||||
<h2>Welcome to the ZzzOT I2P Plugin!</h2>
|
||||
<hr class="heading">
|
||||
<p class="warn" id="docroot">This help file is located at: <code>$PLUGIN/eepsite/docroot/help.html</code><br><span class="emphasis"><b>You should probably move it outside of the document root before you announce your eepsite as it may contain your username.</b></span></p>
|
||||
<p>ZzzOT is a simple in-memory BitTorrent open <a href="https://en.wikipedia.org/wiki/BitTorrent_tracker" class="external" target="_blank">tracker</a>, wrapped into an I2P plugin. The software depends on several I2P libraries, in addition to <code>i2psnark.jar</code> from the I2P installation for bencoding. Please report bugs on <a href="http://trac.i2p2.i2p/" target="_blank">trac.i2p2.i2p</a> or add comments and feature requests on <a href="http://zzz.i2p/forums/16" target="_blank">the plugin forum</a> on zzz.i2p.</p>
|
||||
<p>Source code is available (under the <a href="https://www.apache.org/licenses/LICENSE-2.0.html" class="external" target="_blank">Apache 2.0 license</a>) via the <code>i2p.plugins.zzzot</code> branch in the <a href="https://geti2p.net/en/get-involved/guides/monotone" class="external" target="_blank">I2P monotone</a> database, or on <a href="https://github.com/i2p/i2p.plugins.zzzot" class="external" target="_blank">github</a>. Note that the I2P source code must be available (and compiled) in <code>../i2p.i2p</code> in order to build ZzzOT.</p>
|
||||
<h3>Configuration & Customization</h3>
|
||||
<hr class="heading">
|
||||
<ul id="config">
|
||||
<li>A new eepsite tunnel and Jetty server have been started for your open tracker, configured for 2 inbound and 2 outbound tunnels, 3 hops each. If your tracker gets over 1000 peers, you will probably want to increase the number of tunnels.</li>
|
||||
<li>To change the tunnel settings, edit: <code>$PLUGIN/i2ptunnel.config</code> (the tunnel will not appear in the <a href="http://127.0.0.1:7657/i2ptunnelmgr" target="_blank">Tunnel Manager</a>), then stop and restart the plugin from the <a href="http://127.0.0.1:7657/configplugins" target="_blank">Plugin Manager</a>.</li>
|
||||
<li>The Jetty webserver is running on port <code>7662</code>. If you must change it, edit: <code>jetty.xml</code>, <code>i2ptunnel.config</code>, and <code>plugins.config</code> in: <code>$PLUGIN/</code>, then stop and restart the plugin.</li>
|
||||
<li>The only configuration for ZzzOT itself is the <i>interval</i>, which tells clients how long to wait between announces. The default is 1620 seconds (27 minutes). Note: The easiest way to reduce the load on your tracker is to increase the interval. To do so, edit the file: <code>$PLUGIN/zzzot.config</code>, then stop and restart the plugin.</li>
|
||||
<li>Live stats are available on the <a href="http://127.0.0.1:7662/tracker" target="_blank">tracker page</a> (this link is also on your router console sidebar when ZzzOT is running).</li>
|
||||
<li>To change the display name for the site (for the logo and page titles), add the line: <code>sitename=<i>mytracker</i></code> to: <code>$PLUGIN/zzzot.config</code> (substituting <i>mytracker</i> with your desired name) and then stop and restart the plugin.</li>
|
||||
<li>If you wish to change the appearance of the site, edit the css file located at: <br><code>$PLUGIN/eepsite/docroot/tracker.css</code></li>
|
||||
<li>Your eepsite home page is located at: <code>$PLUGIN/eepsite/docroot/index.html</code>, you may edit it to add information about your tracker or links to additional content.</li>
|
||||
<li>Your eepsite document root is: <code>$PLUGIN/eepsite/docroot/</code>. You may put other files there if you wish to host additional content on your eepsite.</li>
|
||||
<li>Directory listings are enabled on the server, so you don't need to create a web page to serve files; content in any folders you create in your document root will be immediately available to your visitors. The quickest method to disable listings is to place an empty <code>index.html</code> file in any folder you wish to disable.</li>
|
||||
<li>Open trackers do not require torrents to be registered, and do not host torrent files. However, you can host torrent files elsewhere on the eepsite, for example at <a href="/torrents/" target="_blank">/torrents</a>.</li>
|
||||
</ul>
|
||||
<h3>Eepsite Key & Hostname Registration</h3>
|
||||
<hr class="heading">
|
||||
<p class="warn">Your private key file is located at: <code>$PLUGIN/eepPriv.dat</code><br><span class="emphasis">Make sure you backup this file and move the copy outside of <code>$PLUGIN/</code> as it controls ownership of your B64/B32 address.</span></p>
|
||||
<p>Your Base 32 address is: <a href="http://$B32/" target="_blank">$B32</a><br>Others may access your eepsite using this address, even if you do not publish a hostname.</p>
|
||||
<p>Your Base 64 key is:<br><code id="b64" tabindex="1">$B64</code><br>Once you decide on a hostname, you may <a href="http://127.0.0.1:7657/susidns/addressbook.jsp?book=private&destination=$B64" target="_blank">add the key</a> to your local addressbook.</p>
|
||||
<p>To generate a registration authentication string for your hostname (required for <a href="http://stats.i2p/i2p/addkey.html" target="_blank">hostname registration</a> at stats.i2p), run the following from the command line:<br><code>java -jar $I2P/lib/i2p.jar privatekeyfile -a <i>your-hostname</i>.i2p $PLUGIN/eepPriv.dat</code></p>
|
||||
<h3>Tracker URLs</h3>
|
||||
<hr class="heading">
|
||||
<p>Tracker statistics:</p>
|
||||
<ul class="urls">
|
||||
<li><a href="http://$B32/tracker">http://$B32/tracker</a></li>
|
||||
<li><a href="http://$B32/tracker/">http://$B32/tracker/</a></li>
|
||||
<li><a href="http://$B32/tracker/index.html">http://$B32/tracker/index.html</a></li>
|
||||
<li><a href="http://$B32/tracker/index.jsp">http://$B32/tracker/index.jsp</a></li>
|
||||
</ul>
|
||||
<p>Supported announce URLs:</p>
|
||||
<ul class="urls">
|
||||
<li><a href="http://$B32/a">http://$B32/a</a></li>
|
||||
<li><a href="http://$B32/announce">http://$B32/announce</a></li>
|
||||
<li><a href="http://$B32/announce.jsp">http://$B32/announce.jsp</a></li>
|
||||
<li><a href="http://$B32/announce.php">http://$B32/announce.php</a></li>
|
||||
<li><a href="http://$B32/tracker/a">http://$B32/tracker/a</a></li>
|
||||
<li><a href="http://$B32/tracker/announce">http://$B32/tracker/announce</a></li>
|
||||
<li><a href="http://$B32/tracker/announce.jsp">http://$B32/tracker/announce.jsp</a></li>
|
||||
<li><a href="http://$B32/tracker/announce.php">http://$B32/tracker/announce.php</a></li>
|
||||
</ul>
|
||||
<p>Supported scrape URLs:</p>
|
||||
<ul class="urls">
|
||||
<li><a href="http://$B32/scrape">http://$B32/scrape</a></li>
|
||||
<li><a href="http://$B32/scrape.jsp">http://$B32/scrape.jsp</a></li>
|
||||
<li><a href="http://$B32/scrape.php">http://$B32/scrape.php</a></li>
|
||||
<li><a href="http://$B32/tracker/scrape">http://$B32/tracker/scrape</a></li>
|
||||
<li><a href="http://$B32/tracker/scrape.jsp">http://$B32/tracker/scrape.jsp</a></li>
|
||||
<li><a href="http://$B32/tracker/scrape.php">http://$B32/tracker/scrape.php</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
20
plugin/templates/index.html
Normal file
20
plugin/templates/index.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!-- edit this file if you want to change your home page -->
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ZZZOT OPENTRACKER</title>
|
||||
<link href="/tracker.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="panel">
|
||||
<a href="/tracker" title="View OpenTracker stats"><span id="sitename">zzzot</span></a>
|
||||
<span id="footer" class="b32">$B32</span>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
@ -81,7 +81,7 @@
|
||||
SocketConnector below.
|
||||
Do not use for gij or JamVM - comment this out, and uncomment the
|
||||
SocketConnector below.
|
||||
-->
|
||||
-->
|
||||
<Call name="addConnector">
|
||||
<Arg>
|
||||
<New class="org.eclipse.jetty.server.ServerConnector">
|
||||
@ -121,12 +121,12 @@
|
||||
-->
|
||||
|
||||
<!-- =========================================================== -->
|
||||
<!-- Set handler Collection Structure -->
|
||||
<!-- -->
|
||||
<!-- We use a RewriteHandler at the top level so that we may -->
|
||||
<!-- convert any top-level URLs for the tracker down into the -->
|
||||
<!-- tracker servlet, without interfering with anything else -->
|
||||
<!-- that is hosted on the same eepsite. -->
|
||||
<!-- Set handler Collection Structure -->
|
||||
<!-- -->
|
||||
<!-- We use a RewriteHandler at the top level so that we may -->
|
||||
<!-- convert any top-level URLs for the tracker down into the -->
|
||||
<!-- tracker servlet, without interfering with anything else -->
|
||||
<!-- that is hosted on the same eepsite. -->
|
||||
<!-- =========================================================== -->
|
||||
<Set name="handler">
|
||||
<New id="Rewrite" class="org.eclipse.jetty.rewrite.handler.RewriteHandler">
|
||||
@ -135,6 +135,36 @@
|
||||
<Set name="originalPathAttribute">requestedPath</Set>
|
||||
<Set name="rules">
|
||||
<Array type="org.eclipse.jetty.rewrite.handler.Rule">
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
<Set name="pattern">/help</Set>
|
||||
<Set name="replacement">/help.html</Set>
|
||||
</New>
|
||||
</Item>
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
<Set name="pattern">/help/</Set>
|
||||
<Set name="replacement">/help.html</Set>
|
||||
</New>
|
||||
</Item>
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
<Set name="pattern">/tracker</Set>
|
||||
<Set name="replacement">/tracker/index.jsp</Set>
|
||||
</New>
|
||||
</Item>
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
<Set name="pattern">/tracker/</Set>
|
||||
<Set name="replacement">/tracker/index.jsp</Set>
|
||||
</New>
|
||||
</Item>
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
<Set name="pattern">/tracker/index.html</Set>
|
||||
<Set name="replacement">/tracker/index.jsp</Set>
|
||||
</New>
|
||||
</Item>
|
||||
<Item>
|
||||
<New class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
|
||||
<Set name="pattern">/a</Set>
|
||||
|
@ -1,6 +0,0 @@
|
||||
<html><head>
|
||||
<!-- edit this file if you want to change your home page -->
|
||||
<title>zzzot</title>
|
||||
</head><body style="background-color: #000; color: #c30; font-size: 2000%;">
|
||||
<center><b>zzzot</b></center>
|
||||
</body></html>
|
@ -9,4 +9,4 @@ updateURL.su3=http://stats.i2p/i2p/plugins/zzzot-update.su3
|
||||
websiteURL=http://zzz.i2p/forums/16
|
||||
license=Apache 2.0
|
||||
min-jetty-version=9
|
||||
min-i2p-version=0.9.29
|
||||
min-i2p-version=0.9.31
|
||||
|
207
scripts/tracker-purple.css
Normal file
207
scripts/tracker-purple.css
Normal file
@ -0,0 +1,207 @@
|
||||
/* ZZZOT OpenTracker theme (purrrrple) */
|
||||
/* Author: dr|z3d 2019 */
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100%;
|
||||
color: #fef;
|
||||
background: #111;
|
||||
font-size: 14pt;
|
||||
font-family: "Droid Sans", "Open Sans", "Noto Sans", Ubuntu, "Segoe UI", "Lucida Grande", Verdana, Helvetica, sans-serif;
|
||||
|
||||
}
|
||||
|
||||
@supports (background-blend-mode: overlay) {
|
||||
html, body {
|
||||
background: repeating-linear-gradient(45deg, #333, #111 2px, #111 3px), repeating-linear-gradient(135deg, #444, #333 2px, #222 3px);
|
||||
background: repeating-linear-gradient(45deg, #313, #000 2px, #000 3px), repeating-linear-gradient(135deg, #414, #313 2px, #212 3px); /* purple */
|
||||
background-blend-mode: overlay, normal;
|
||||
background-size: 100% 100%, 100% 100%;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
#container {
|
||||
padding: 2%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: table;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#panel {
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
border: 1px solid #535;
|
||||
box-shadow: inset 0 0 0 1px #111, inset 0 0 2px 1px #444, 0 0 2px 2px #000;
|
||||
background: #181818;
|
||||
background: repeating-linear-gradient(to right, rgba(255, 255, 255, .05), rgba(0, 0, 0, .08) 2px), repeating-linear-gradient(to bottom, #222, #111 2px);
|
||||
background: repeating-linear-gradient(to right, rgba(255, 200, 255, .05), rgba(0, 0, 0, .08) 2px), repeating-linear-gradient(to bottom, #212, #101 2px); /* purple */
|
||||
background-blend-mode: overlay;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: "Droid Sans Mono", "Noto Mono", "DejaVu Sans Mono", "Lucida Console", monospace;
|
||||
}
|
||||
|
||||
#sitename, #sitename:hover, #sitename:focus {
|
||||
margin: 0 auto;
|
||||
font-size: 10em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
letter-spacing: .05em;
|
||||
transition: ease background .3s;
|
||||
color: #731;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#stats #sitename, #stats #sitename:hover, #stats #sitename:focus {
|
||||
font-size: 8em;
|
||||
}
|
||||
|
||||
#sitename:hover, #sitename:focus {
|
||||
color: #951;
|
||||
}
|
||||
|
||||
@supports (-webkit-text-stroke-width: 1px) {
|
||||
#sitename, #sitename:hover, #sitename:focus {
|
||||
background: #731;
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .5) 2px), linear-gradient(to bottom, rgba(255, 96, 0, .2), rgba(0, 0, 0, .9) 100%), linear-gradient(to bottom, #414, #313 15%, #fff 50%, #313 80%);
|
||||
-moz-background-clip: text !important;
|
||||
-webkit-background-clip: text !important;
|
||||
background-clip: text !important;
|
||||
-moz-text-fill-color: transparent !important;
|
||||
-webkit-text-fill-color: transparent !important;
|
||||
text-fill-color: transparent !important;
|
||||
filter: hue-rotate(0) drop-shadow(0 0 2px #181818) drop-shadow(0 3px 0.01em #000);
|
||||
-webkit-text-stroke-color: #fef;
|
||||
-webkit-text-stroke-width: 0.02em;
|
||||
animation: ease-in-out spinwash 120s alternate infinite;
|
||||
mix-blend-mode: soft-light;
|
||||
}
|
||||
|
||||
#sitename:hover, #sitename:focus {
|
||||
background: #951;
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .3) 2px), linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(0, 0, 0, .95)), linear-gradient(to bottom, #d59, #a39 15%, #fff 50%, #839 70%, #000);
|
||||
filter: drop-shadow(0 0 0.02em #f00);
|
||||
-webkit-text-stroke-color: #fef;
|
||||
opacity: .5;
|
||||
mix-blend-mode: normal;
|
||||
background-blend-mode: overlay;
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spinwash {
|
||||
from {
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .3) 2px), linear-gradient(45deg, rgba(64,16,64,.1), rgba(16,0,16,.2)), linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(0, 0, 0, .7) 100%), linear-gradient(to bottom, #930, #d50 15%, #fff 50%, #930 80%, #000 100%, #ff0 150%);
|
||||
filter: sepia(0) hue-rotate(0) drop-shadow(0 0 2px #181818) drop-shadow(0 3px 0.01em #000);
|
||||
}
|
||||
to {
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .3) 2px), linear-gradient(45deg, rgba(16,0,16,.1), rgba(64,16,64,.2)), linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(0, 0, 0, .7) 100%), linear-gradient(to bottom, #930, #d50 15%, #fff 50%, #930 80%, #000 100%, #ff0 150%);
|
||||
filter: sepia(0) hue-rotate(1440deg) drop-shadow(0 0 2px #181818) drop-shadow(0 3px 0.01em #000);
|
||||
}
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: #f60;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a:hover, a:focus {
|
||||
color: #f90;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 20px 10px;
|
||||
height: 1px;
|
||||
color: transparent;
|
||||
border: none;
|
||||
background: #555;
|
||||
background: linear-gradient(to right, rgba(0, 0, 0, 0), #535, rgba(0, 0, 0, 0));
|
||||
}
|
||||
|
||||
#footer {
|
||||
padding: 4px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 11pt;
|
||||
font-weight: bold;
|
||||
border-top: 1px solid #535;
|
||||
box-shadow: inset 0 0 0 1px #000, inset 0 0 2px 1px #333;
|
||||
background: rgba(16, 0, 16, .5);
|
||||
-moz-user-select: all;
|
||||
-webkit-user-select: all;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
#footer.version {
|
||||
font-size: 9.5pt;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#initializing::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 28px;
|
||||
height: 24px;
|
||||
vertical-align: text-bottom;
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABRhJREFUeNq0Vd1vk1UYP+f9bruPrmu70W1lrLKJzE0o+BEFt4yLRZJpgl4YZ6IXhiuT/Slcqlw6QyIauNEYIhHlAgMrJDjUDQejdF3Xj7Xv24/3+xyf01LWOpArTvLr6XnOOc/X7znPiyml6HkOgf28+cXDxwLMcYgDsBljHAS8AeJjgDFAGMAByoAk4Ddw8GdAihKCmLMcz7N7s7CXu/JpOCE8xbAXMC0KaGYwLMeG9yj7ujuEPkXmAiDnDZNYasUx1jeNqVTWOG3Z6CLIzwK2AfNgaOGRniNPMtADB+ZiEXl8Yn9nTOD4AcMgnXoVydUy4R4FKXtFQT482tU98YIvcvtuuf+fhzUW6RXiuvMfn4zEv/4hnXicIhA209MlYDrz6rg/Gu33BlWViLbtPDW/lQpBoojlw2Pdw8Fu0Xd9uRh9/8TAIU0jiDjODgcuLCBvEqY0fnQyEOzrUXybmzZqFgDsMUWI53F97boU2Tat71sWQrUaRn0BJXRqJhJKpy3U3S3AGXfHAAGCQEn0xeFOPyj3bm5a9ctMsSxjkteqhdRWNV8qWyxFnL9TUgb7fIFgl7fXNCnPzqbTO5FacMxtjQBSJMsSHz4w4vekUnrdQ6Zc8WDnxp+5B4WSsQqCH+HoHRZQxrQnMrnKh71+5fgro6GYoVOptdwtC7cbcGy7JzbUIWsli9drdqOMfDxZupNNbavGZSi975nBJl9w+VdYD23l7COel/sktWi0cWOZHNPZxkHXUL9Pym2V4T+lmMNORrdT2Xx5GRTVlZt6DYJohM7z/DwsFk4eG4kn10u7yDcNuisCiSOE08t19/OixOfXN0oaHPqdUoKqmlo/LCkeNs06jrMwNx2Lq0WoXWl3dVHi/CcCWDimqVpGTW2sOVRUa1XXJduu20KeriNBFHMs3xcu/Z14RpdItEbw+cXLq/Fn9RVK6GkovwSk7EhTBpyIHIdfOjDY6WvKIgM96NK1da2Vg/hHHxz6XwPfnL/FPAoxkiVFqZMNqQKjJNDhk4dtjLtY9cGwq7arurajtUaAdIugm8vpXYoPj0fQt98tMa/PQBP8yTZNVCmVkCBJjGz2+o+HwsFxmxd4m7oFxmFZtwnotNo4qDoUGbzYpnxyfxCdO3ctAX6dgeWiY1moJTUICvdUj987HR7slZPZSg7xHPbKAtpIFyzISksEEGqFYKQL8mMFPkVAEJTlD/i8+az6FqSC9fTbjArAQSD6HdgbfW3qoLyypRead30y56aSOdOxnWJbBJrLI13cMaBDKyEqlV6fjY9m7m323l/deLuU19iLIv5gF9k3OoD7R/aQv7JmfhvuIpFHHTKP0itrulHVs5BSs63ZlVHDQCwgoZTmINMhaAMyks+4/N7IQDg+ujfcIXH17FQsUs5UnOLVjF0wHZDBPVngkJHZqKVXH5SAl2Tz5TcMQD41JKJQQEQ3Fy/c6j06OYijwyGd8cLyojKw7ui2MAQKMLwyoM0jQO9JrldTN/7IU1bGlFqo1QDr3RUsoNTZxQRsLG5dvT7lGytMipMTewzFK0MwT/7egvOKUbP1pdv56spaEu5eBu815O44gtmrFN/9aulR42eluAiyAJD6GZbl9+ThaB8fGwlQf49CPR7WGFys69u4VNxy1+7dN9eTa9Q0meJfADX2uWsO4/wnDQPC3JdxmEOsztlHm8lYGcI8COdOAI4DooBOFjAgC1gBXAVcg3znucabQE808DzHvwIMALq5vhJjsCXwAAAAAElFTkSuQmCC") center center no-repeat;
|
||||
background-size: 16px 16px;
|
||||
filter: hue-rotate(180deg) saturate(.6);
|
||||
animation: spin linear 3s forwards infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0)
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 600px) {
|
||||
#container {
|
||||
padding: 1%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
html, body {
|
||||
font-size: 12pt;
|
||||
}
|
||||
#container {
|
||||
padding: 1%;
|
||||
}
|
||||
#sitename, #sitename:hover, #sitename:focus {
|
||||
font-size: 8em;
|
||||
}
|
||||
#stats #sitename, #stats #sitename:hover, #stas #sitename:focus {
|
||||
font-size: 6em;
|
||||
}
|
||||
#footer.b32 {
|
||||
font-size: 10pt;
|
||||
}
|
||||
#footer.version {
|
||||
font-size: 8.5pt;
|
||||
}
|
||||
#initializing::before {
|
||||
height: 20px;
|
||||
}
|
||||
}
|
186
scripts/tracker.css
Normal file
186
scripts/tracker.css
Normal file
@ -0,0 +1,186 @@
|
||||
/* ZZZOT OpenTracker theme */
|
||||
/* Author: dr|z3d 2019 */
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100%;
|
||||
color: #bbb;
|
||||
background: #111;
|
||||
font-size: 14pt;
|
||||
font-family: "Droid Sans", "Open Sans", "Noto Sans", Ubuntu, "Segoe UI", "Lucida Grande", Verdana, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
@supports (background-blend-mode: overlay) {
|
||||
html, body {
|
||||
background: repeating-linear-gradient(45deg, #333, #111 2px, #111 3px), repeating-linear-gradient(135deg, #444, #333 2px, #222 3px);
|
||||
background-blend-mode: overlay, normal;
|
||||
background-size: 100% 100%, 100% 100%;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
#container {
|
||||
padding: 2%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: table;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#panel {
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
border: 1px solid #555;
|
||||
box-shadow: inset 0 0 0 1px #111, inset 0 0 2px 1px #444, 0 0 2px 2px #000;
|
||||
background: #181818;
|
||||
background: repeating-linear-gradient(to right, rgba(255, 255, 255, .05), rgba(0, 0, 0, .08) 2px), repeating-linear-gradient(to bottom, #222, #111 2px);
|
||||
background-blend-mode: overlay;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: "Droid Sans Mono", "Noto Mono", "DejaVu Sans Mono", "Lucida Console", monospace;
|
||||
}
|
||||
|
||||
#sitename, #sitename:hover, #sitename:focus {
|
||||
margin: 0 auto;
|
||||
font-size: 10em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
letter-spacing: .05em;
|
||||
transition: ease background .3s;
|
||||
color: #731;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
#stats #sitename, #stats #sitename:hover, #stats #sitename:focus {
|
||||
font-size: 8em;
|
||||
}
|
||||
|
||||
#sitename:hover, #sitename:focus {
|
||||
color: #951;
|
||||
}
|
||||
|
||||
@supports (-webkit-text-stroke-width: 1px) {
|
||||
#sitename, #sitename:hover, #sitename:focus {
|
||||
background: #731;
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .5) 2px), linear-gradient(to bottom, rgba(255, 96, 0, .2), rgba(0, 0, 0, .9) 100%), linear-gradient(to bottom, #210, #310 15%, #fff 50%, #310 80%);
|
||||
-moz-background-clip: text !important;
|
||||
-webkit-background-clip: text !important;
|
||||
background-clip: text !important;
|
||||
-moz-text-fill-color: transparent !important;
|
||||
-webkit-text-fill-color: transparent !important;
|
||||
text-fill-color: transparent !important;
|
||||
filter: drop-shadow(0 0 2px #000);
|
||||
-webkit-text-stroke-color: #999;
|
||||
-webkit-text-stroke-width: 0.02em;
|
||||
}
|
||||
#sitename:hover, #sitename:focus {
|
||||
background: #951;
|
||||
background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .3) 2px), linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(0, 0, 0, .7) 100%), linear-gradient(to bottom, #930, #d50 15%, #fff 50%, #930 80%, #000 100%, #ff0 150%);
|
||||
filter: drop-shadow(0 0 2px #b00);
|
||||
-webkit-text-stroke-color: #bbb;
|
||||
}
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: #f60;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a:hover, a:focus {
|
||||
color: #f90;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 20px 10px;
|
||||
height: 1px;
|
||||
color: transparent;
|
||||
border: none;
|
||||
background: #555;
|
||||
background: linear-gradient(to right, rgba(0, 0, 0, 0), #555, rgba(0, 0, 0, 0));
|
||||
}
|
||||
|
||||
#footer {
|
||||
padding: 4px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
font-size: 11pt;
|
||||
font-weight: bold;
|
||||
border-top: 1px solid #555;
|
||||
box-shadow: inset 0 0 0 1px #000, inset 0 0 2px 1px #333;
|
||||
background: rgba(0, 0, 0, .5);
|
||||
-moz-user-select: all;
|
||||
-webkit-user-select: all;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
#footer.version {
|
||||
font-size: 9.5pt;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#initializing::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 28px;
|
||||
height: 24px;
|
||||
vertical-align: text-bottom;
|
||||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABRhJREFUeNq0Vd1vk1UYP+f9bruPrmu70W1lrLKJzE0o+BEFt4yLRZJpgl4YZ6IXhiuT/Slcqlw6QyIauNEYIhHlAgMrJDjUDQejdF3Xj7Xv24/3+xyf01LWOpArTvLr6XnOOc/X7znPiyml6HkOgf28+cXDxwLMcYgDsBljHAS8AeJjgDFAGMAByoAk4Ddw8GdAihKCmLMcz7N7s7CXu/JpOCE8xbAXMC0KaGYwLMeG9yj7ujuEPkXmAiDnDZNYasUx1jeNqVTWOG3Z6CLIzwK2AfNgaOGRniNPMtADB+ZiEXl8Yn9nTOD4AcMgnXoVydUy4R4FKXtFQT482tU98YIvcvtuuf+fhzUW6RXiuvMfn4zEv/4hnXicIhA209MlYDrz6rg/Gu33BlWViLbtPDW/lQpBoojlw2Pdw8Fu0Xd9uRh9/8TAIU0jiDjODgcuLCBvEqY0fnQyEOzrUXybmzZqFgDsMUWI53F97boU2Tat71sWQrUaRn0BJXRqJhJKpy3U3S3AGXfHAAGCQEn0xeFOPyj3bm5a9ctMsSxjkteqhdRWNV8qWyxFnL9TUgb7fIFgl7fXNCnPzqbTO5FacMxtjQBSJMsSHz4w4vekUnrdQ6Zc8WDnxp+5B4WSsQqCH+HoHRZQxrQnMrnKh71+5fgro6GYoVOptdwtC7cbcGy7JzbUIWsli9drdqOMfDxZupNNbavGZSi975nBJl9w+VdYD23l7COel/sktWi0cWOZHNPZxkHXUL9Pym2V4T+lmMNORrdT2Xx5GRTVlZt6DYJohM7z/DwsFk4eG4kn10u7yDcNuisCiSOE08t19/OixOfXN0oaHPqdUoKqmlo/LCkeNs06jrMwNx2Lq0WoXWl3dVHi/CcCWDimqVpGTW2sOVRUa1XXJduu20KeriNBFHMs3xcu/Z14RpdItEbw+cXLq/Fn9RVK6GkovwSk7EhTBpyIHIdfOjDY6WvKIgM96NK1da2Vg/hHHxz6XwPfnL/FPAoxkiVFqZMNqQKjJNDhk4dtjLtY9cGwq7arurajtUaAdIugm8vpXYoPj0fQt98tMa/PQBP8yTZNVCmVkCBJjGz2+o+HwsFxmxd4m7oFxmFZtwnotNo4qDoUGbzYpnxyfxCdO3ctAX6dgeWiY1moJTUICvdUj987HR7slZPZSg7xHPbKAtpIFyzISksEEGqFYKQL8mMFPkVAEJTlD/i8+az6FqSC9fTbjArAQSD6HdgbfW3qoLyypRead30y56aSOdOxnWJbBJrLI13cMaBDKyEqlV6fjY9m7m323l/deLuU19iLIv5gF9k3OoD7R/aQv7JmfhvuIpFHHTKP0itrulHVs5BSs63ZlVHDQCwgoZTmINMhaAMyks+4/N7IQDg+ujfcIXH17FQsUs5UnOLVjF0wHZDBPVngkJHZqKVXH5SAl2Tz5TcMQD41JKJQQEQ3Fy/c6j06OYijwyGd8cLyojKw7ui2MAQKMLwyoM0jQO9JrldTN/7IU1bGlFqo1QDr3RUsoNTZxQRsLG5dvT7lGytMipMTewzFK0MwT/7egvOKUbP1pdv56spaEu5eBu815O44gtmrFN/9aulR42eluAiyAJD6GZbl9+ThaB8fGwlQf49CPR7WGFys69u4VNxy1+7dN9eTa9Q0meJfADX2uWsO4/wnDQPC3JdxmEOsztlHm8lYGcI8COdOAI4DooBOFjAgC1gBXAVcg3znucabQE808DzHvwIMALq5vhJjsCXwAAAAAElFTkSuQmCC") center center no-repeat;
|
||||
background-size: 16px 16px;
|
||||
filter: hue-rotate(180deg) saturate(.6);
|
||||
animation: spin linear 3s forwards infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0)
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg)
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-height: 600px) {
|
||||
#container {
|
||||
padding: 1%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
html, body {
|
||||
font-size: 12pt;
|
||||
}
|
||||
#container {
|
||||
padding: 1%;
|
||||
}
|
||||
#sitename, #sitename:hover, #sitename:focus {
|
||||
font-size: 8em;
|
||||
}
|
||||
#stats #sitename, #stats #sitename:hover, #stas #sitename:focus {
|
||||
font-size: 6em;
|
||||
}
|
||||
#footer.b32 {
|
||||
font-size: 10pt;
|
||||
}
|
||||
#footer.version {
|
||||
font-size: 8.5pt;
|
||||
}
|
||||
#initializing::before {
|
||||
height: 20px;
|
||||
}
|
||||
}
|
@ -86,7 +86,6 @@
|
||||
</target>
|
||||
|
||||
<target name="war" depends="precompilejsp">
|
||||
<copy file="jsp/index.html" todir="build/war" />
|
||||
<war destfile="build/tracker.war.jar" webxml="build/web.xml">
|
||||
<fileset dir="build/war" />
|
||||
</war>
|
||||
|
@ -65,10 +65,15 @@ public class ZzzOTController implements ClientApp {
|
||||
private final ZzzOT _zzzot;
|
||||
/** only for main() */
|
||||
private static volatile ZzzOTController _controller;
|
||||
// you wouldn't run two instances in the same JVM, would you?
|
||||
private static String _sitename;
|
||||
|
||||
private ClientAppState _state = UNINITIALIZED;
|
||||
|
||||
private static final String NAME = "ZzzOT";
|
||||
private static final String DEFAULT_SITENAME = "ZZZOT";
|
||||
private static final String PROP_SITENAME = "sitename";
|
||||
private static final String VERSION = "0.16.1";
|
||||
private static final String CONFIG_FILE = "zzzot.config";
|
||||
private static final String BACKUP_SUFFIX = ".jetty8";
|
||||
private static final String[] xmlFiles = {
|
||||
@ -96,6 +101,7 @@ public class ZzzOTController implements ClientApp {
|
||||
_log.warn("No config file " + cfile);
|
||||
}
|
||||
_zzzot = new ZzzOT(ctx, props);
|
||||
_sitename = props.getProperty(PROP_SITENAME, DEFAULT_SITENAME);
|
||||
_state = INITIALIZED;
|
||||
}
|
||||
|
||||
@ -318,7 +324,7 @@ public class ZzzOTController implements ClientApp {
|
||||
}
|
||||
|
||||
/**
|
||||
* Migate a single jetty config file, replacing $PLUGIN as we copy it.
|
||||
* Migrate a single jetty config file, replacing $PLUGIN as we copy it.
|
||||
*/
|
||||
private boolean migrateJettyFile(File pluginDir, String name) {
|
||||
File templateDir = new File(pluginDir, "templates");
|
||||
@ -345,20 +351,29 @@ public class ZzzOTController implements ClientApp {
|
||||
private void launchHelp(File pluginDir, Destination dest) {
|
||||
File fileTmpl = new File(pluginDir, "templates/help.html");
|
||||
File outFile = new File(pluginDir, "eepsite/docroot/help.html");
|
||||
File index_in = new File(pluginDir, "templates/index.html");
|
||||
File index_out = new File(pluginDir, "eepsite/docroot/index.html");
|
||||
String b32 = Base32.encode(dest.calculateHash().getData()) + ".b32.i2p";
|
||||
String b64 = dest.toBase64();
|
||||
try {
|
||||
String html = FileUtil.readTextFile(fileTmpl.getAbsolutePath(), 100, true);
|
||||
// help.html
|
||||
String html = FileUtil.readTextFile(fileTmpl.getAbsolutePath(), 400, true);
|
||||
if (html == null)
|
||||
throw new IOException(fileTmpl.getAbsolutePath() + " open failed");
|
||||
// replace $HOME in path
|
||||
String home = System.getProperty("user.home");
|
||||
String pdir = pluginDir.getAbsolutePath();
|
||||
if (pdir.startsWith(home))
|
||||
if (pdir.startsWith(home)) {
|
||||
pdir = "$HOME" + pdir.substring(home.length());
|
||||
// only warn about username in help if we haven't replaced it with $HOME
|
||||
html = html.replace("<p class=\"warn\" id=\"docroot\">", "<p id=\"docroot\">");
|
||||
html = html.replace("<br><span class=\"emphasis\"><b>You should probably move it outside of the document root " +
|
||||
"before you announce your eepsite as it may contain your username.</b></span>", "");
|
||||
}
|
||||
html = html.replace("$PLUGIN", pdir);
|
||||
html = html.replace("$B32", b32);
|
||||
html = html.replace("$B64", b64);
|
||||
html = html.replace("$VERSION", VERSION);
|
||||
String bdir = _context.getBaseDir().getAbsolutePath();
|
||||
if (bdir.startsWith(home))
|
||||
bdir = "$HOME" + bdir.substring(home.length());
|
||||
@ -366,6 +381,14 @@ public class ZzzOTController implements ClientApp {
|
||||
FileOutputStream os = new FileOutputStream(outFile);
|
||||
os.write(html.getBytes("UTF-8"));
|
||||
os.close();
|
||||
// index.html
|
||||
String html2 = FileUtil.readTextFile(index_in.getAbsolutePath(), 19, true);
|
||||
if (html2 == null)
|
||||
throw new IOException(fileTmpl.getAbsolutePath() + " open failed");
|
||||
html2 = html2.replace("$B32", b32);
|
||||
FileOutputStream os2 = new FileOutputStream(index_out);
|
||||
os2.write(html2.getBytes("UTF-8"));
|
||||
os2.close();
|
||||
Thread t = new I2PAppThread(new Launcher(), "ZzzOTHelp", true);
|
||||
t.start();
|
||||
} catch (IOException ioe) {
|
||||
@ -444,6 +467,16 @@ public class ZzzOTController implements ClientApp {
|
||||
|
||||
/////// end ClientApp methods
|
||||
|
||||
/** @since 0.17.0 */
|
||||
public static String getSiteName() {
|
||||
return _sitename;
|
||||
}
|
||||
|
||||
/** @since 0.17.0 */
|
||||
public static String getVersion() {
|
||||
return VERSION;
|
||||
}
|
||||
|
||||
/** @since 0.12.0 */
|
||||
private synchronized void changeState(ClientAppState state) {
|
||||
_state = state;
|
||||
|
@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;url=index.jsp" />
|
||||
<title>zzzot</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="index.jsp">Enter</a>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,25 +1,57 @@
|
||||
<%@page import="net.i2p.zzzot.ZzzOTController,net.i2p.zzzot.Torrents" %>
|
||||
<%@page trimDirectiveWhitespaces="true"%>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>ZzzOT</title>
|
||||
</head><body style="background-color: #000; color: #c30; font-size: 400%;">
|
||||
<p>
|
||||
zzzot
|
||||
<p>
|
||||
<meta charset="UTF-8">
|
||||
<noscript><meta http-equiv="refresh" content="300;url=."></noscript>
|
||||
<title><%=ZzzOTController.getSiteName()%> OPENTRACKER | STATS</title>
|
||||
<link href="/tracker.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body id="stats">
|
||||
<div id="container">
|
||||
<div id="panel">
|
||||
<a href="/" title="Return to home page" alt="Return to home page"><span id="sitename"><%=ZzzOTController.getSiteName()%></span></a><hr>
|
||||
<%
|
||||
Torrents torrents = ZzzOTController.getTorrents();
|
||||
if (torrents != null) {
|
||||
%>
|
||||
<table cellspacing="8">
|
||||
<tr><td>Torrents:<td align="right"><%=torrents.size()%>
|
||||
<tr><td>Peers:<td align="right"><%=torrents.countPeers()%>
|
||||
</table>
|
||||
<p>
|
||||
<b>Torrents:</b> <%=torrents.size()%><br>
|
||||
<b>Peers:</b> <%=torrents.countPeers()%><br>
|
||||
</p>
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
ZzzOT is not running
|
||||
<p id="initializing"><b><i>Initializing OpenTracker…</i></b></p>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<span id="footer" class="version">Running ZZZOT <%=ZzzOTController.getVersion()%></span>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
setInterval(function() {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', '/tracker/index.jsp?' + new Date().getTime(), true);
|
||||
xhr.responseType = "text";
|
||||
xhr.onreadystatechange = function () {
|
||||
if (xhr.readyState==4 && xhr.status==200) {
|
||||
document.getElementById("stats").innerHTML = xhr.responseText;
|
||||
}
|
||||
}
|
||||
xhr.send();
|
||||
<%
|
||||
if (torrents != null) {
|
||||
%>
|
||||
}, 60000);
|
||||
<%
|
||||
} else {
|
||||
%>
|
||||
}, 15000);
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user