wiki:maint/TracUpgrade

Version 3 (modified by killyourtv, 6 years ago) (diff)

Notes about the Trac Upgrades / Configs

Our Trac installation was recently upgraded to version 0.12.2. Work is underway to update to 1.0.1. A test site is available.

The site is served as HTTPS (ticket:595) and HSTS has been enabled (ticket:794#comment:5).

Changes from default installation

Plugins

Any other useful plugins? Is having an integrated Pastebin a bad idea?

site.html customizations

  • footer: add login, register, and logout links (ticket:917)
  • newticket: Add note to top of add ticket page

Temporary redirects

Since we no longer have Trac-Monotone installed—-and haven't had it installed for several months—-some of the links in our documentation were broken. The web site has been changed to point to github but I thought redirecting from the old locations within Trac to github would be better instead of sending 410 Gone. Within I2P I'm redirecting to my ViewMTN installation.

If a user is accessing Trac from the Internet via an In-Proxy I redirect them to https://trac.i2p2.de.

Internet

RewriteRule /browser/Makefile\.gcj https://github.com/i2p/i2p.i2p/tree/master/Makefile.gcj [R=301,L,NC]
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.* https://github.com/i2p/i2p.i2p/tree/master/core/java/src/net/i2p/crypto/$1.java [R=301,L,NC]
RewriteRule ^/browser/plugin/makeplugin\.sh.* https://github.com/i2p/i2p.scripts/tree/master/plugin/makeplugin.sh [R=301,L,NC]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://trac.i2p2.de$1  [NC,R=301,L]

Within I2P

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule /browser/Makefile\.gcj https://github.com/i2p/i2p.i2p/tree/master/Makefile.gcj [R=301,L,NC]

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.* https://github.com/i2p/i2p.i2p/tree/master/core/java/src/net/i2p/crypto/$1.java [R=301,L,NC]

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule ^/browser/plugin/makeplugin\.sh.* https://github.com/i2p/i2p.scripts/tree/master/plugin/makeplugin.sh [R=301,L,NC]

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule (.*) https://trac.i2p2.de$1 [R=301,L,NC]

RewriteRule ^/browser/Makefile\.gcj http://killyourtv.i2p/viewmtn/branch/head/file/i2p.i2p/Makefile.gcj [R=301,L,NC]
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.* http://killyourtv.i2p/viewmtn/branch/head/file/i2p.i2p/core/java/src/net/i2p/crypto/$1.java [R=301,L,NC]
RewriteRule ^/browser/plugin/makeplugin\.sh.* http://killyourtv.i2p/viewmtn/branch/head/file/i2p.scripts/plugin/makeplugin.sh  [R=301,L,NC]

Both Internally and Externally

RewriteRule ^/browser/ - [G]
RewriteRule ^/changeset/ - [G]
RewriteRule ^/diff/ - [G]
RewriteRule ^/export/ - [G]
RewriteRule ^/log/ - [G]