Define site domain in one place

This commit is contained in:
str4d
2013-08-31 04:31:20 +00:00
parent 3e3a438ff9
commit 564922e651
2 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,8 @@ CURRENT_I2P_VERSION = '0.9.7.1'
CANONICAL_DOMAIN = 'i2hq.srv.i2p2.de' CANONICAL_DOMAIN = 'i2hq.srv.i2p2.de'
THIS_DOMAIN = CANONICAL_DOMAIN
BLOG_POSTS_PER_FEED = 10 BLOG_POSTS_PER_FEED = 10
BLOG_POSTS_PER_PAGE = 10 BLOG_POSTS_PER_PAGE = 10
MEETINGS_PER_PAGE = 20 MEETINGS_PER_PAGE = 20

View File

@ -1,12 +1,12 @@
from flask import g, request, safe_join, url_for from flask import g, request, safe_join, url_for
import os.path import os.path
from i2p2www import CANONICAL_DOMAIN, CURRENT_I2P_VERSION, STATIC_DIR, app from i2p2www import CANONICAL_DOMAIN, CURRENT_I2P_VERSION, STATIC_DIR, THIS_DOMAIN, app
INPROXY = '.us' INPROXY = '.us'
I2P_TO_CLEAR = { I2P_TO_CLEAR = {
'www.i2p2.i2p': 'www.i2p2.de', 'www.i2p2.i2p': THIS_DOMAIN,
'forum.i2p': 'forum.i2p', # Don't convert forum.i2p, it is not accessible outside I2P 'forum.i2p': 'forum.i2p', # Don't convert forum.i2p, it is not accessible outside I2P
'trac.i2p2.i2p': 'trac.i2p2.de', 'trac.i2p2.i2p': 'trac.i2p2.de',
'mail.i2p': 'i2pmail.org', 'mail.i2p': 'i2pmail.org',