1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-08 22:07:55 +00:00
Commit Graph

438 Commits

Author SHA1 Message Date
i2phosts
bf7e237e5c Merge pull request #1 from r4sas/master
Add README, api "status" function, fixed tabulation
2017-02-20 00:02:42 +05:00
109b8946e7 added README 2017-01-28 12:36:48 +03:00
aa854f3bbc fixed tabulation 2017-01-28 12:22:48 +03:00
r4sas
68e3b47be1 added api status tool 2017-01-28 12:14:47 +03:00
Hidden Z
2634ae7c8e validation.py: fix EdDSA support 2016-01-21 20:06:40 +00:00
Hidden Z
e6c301b379 py-i2phosts-maint: fix rare situation with expires
If new calculated expires is in the past in relation to current
datetime, it was caused an exception.
2015-11-16 19:20:52 +00:00
Hidden Z
06468a3c7c Properly setup django in standalone scripts
https://docs.djangoproject.com/en/dev/releases/1.7/#standalone-scripts
2015-11-16 19:20:50 +00:00
Hidden Z
8905486e3e Pass correct argument name to HttpResponse
Fixes compatibility with django 1.8.
2015-11-16 18:20:01 +00:00
Hidden Z
e6c89f6c6c postkey/admin.py: fix compatibility with django 1.8 2015-11-15 20:26:05 +00:00
Hidden Z
18266be4c2 search/views.py: fix broken search
It was broken after inroducing different ordering in /browse/.
2015-11-15 19:38:38 +00:00
Hidden Z
d975295892 py-i2phosts-master: relax daemon umask to 022
I don't remember why it was set to 077 initially, but now I see it
causes problems. Exactly, py-i2phosts-builer called from master creates
hosts.txt file with 600 permissions, so file is not readable by nginx
for example. New umask fixes this problem.
2015-11-15 19:38:34 +00:00
Hidden Z
0398b98df6 Fix rss-grey-18.png
It was accidentaly corrupted while tabs convertion.
2015-11-13 19:28:30 +00:00
Hidden Z
cb38a370c0 py-i2phosts-master: fix dirty merge 2015-11-06 17:24:25 +00:00
Hidden Z
c6f6c0ce26 Use b32 address when verifying subdomain
This prevents situation when user registered 2nd level domain and then
tries to register a subdomain. In such case i2p router doesn't know yet
this 2nd level domain and cannot access it. Using b32 address avoids
such situation.
2015-10-27 19:42:07 +00:00
Hidden Z
9e4cf6273f More properly handle http errors when performing subdomain verify 2015-10-27 19:41:59 +00:00
Hidden Z
6e3862d7ab Convert tabs to spaces 2015-10-27 19:41:44 +00:00
Hidden Z
75de76cf4c Allow different ordering in /browse/ 2015-10-27 19:15:14 +00:00
Hidden Z
1773b69aa7 settings.py: add SessionAuthenticationMiddleware
This fixes compatibility with django 1.8.

RemovedInDjango110Warning: Session verification will become mandatory in
Django 1.10. Please add
'django.contrib.auth.middleware.SessionAuthenticationMiddleware' to your
MIDDLEWARE_CLASSES setting when you are ready to opt-in after reading
the upgrade considerations in the 1.8 release notes.
2015-10-27 19:15:03 +00:00
Hidden Z
93fa07301c Make i2phostAdminForm compatible with django 1.8
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm
without either the 'fields' attribute or the 'exclude' attribute is
prohibited; form i2phostAdminForm needs updating.
2015-10-27 19:14:45 +00:00
Hidden Z
9833b4c24e requirements.txt: add psycopg2 2015-10-27 19:13:42 +00:00
Hidden Z
38a792c7c0 validation.py: add support for ECDSA keys 2014-12-22 19:05:40 +00:00
Hidden Z
1fbcdeb4bd py-i2phosts-injector: fix splitting entries
Multiple split by '=' character may cause wrong hash addition because
trailing '==' were stripped from base64 hash. These trailing '==' are
used in ECDSA keys, see http://zzz.i2p/topics/1763
2014-12-22 19:05:39 +00:00
Hidden Z
6045b31350 Fix bug in subdomain verification
When there is verification error and "reason" is present, no reply was
returned to client causing django exception:

ValueError: The view pyi2phosts.postkey.views.subdomain didn't return an
HttpResponse object.
2014-10-15 19:15:33 +00:00
Hidden Z
6ac3284396 Fix undefined variable 2014-09-14 15:44:44 +00:00
Hidden Z
ca831b2d45 py-i2phosts-checker: implement multiple lookup tries
Many hosts are not resolved with first lookup b32->b64, but if we query
2nd time, host can be resolved. Because of this, some registered hosts
may be never seen while they actually up!
2013-10-10 17:29:02 +00:00
Hidden Z
b18b3af1bf checker.conf: replace sam_addr with bob_addr
We're switched to BOB, but I forgot to change config variable. Fix it.
2013-10-10 17:27:38 +00:00
Hidden Z
5608ca04cb requirements.txt: add simplejson 2013-10-09 15:49:21 +00:00
Hidden Z
3880aa9f0f Implement basic api export of all active hosts
Done by zzz request. Export all seen hosts in json format { b32: last_seen }.
2013-10-09 15:43:38 +00:00
Hidden Z
e4f5ae4a6c All hosts browsing: change sorting
Order all hosts in /browse/ by name in alphabetical order. I think it is
better, because hosts will not drift across pages at every timestamp
update.
2013-10-09 15:43:26 +00:00
Hidden Z
7327964135 Update russian translation 2013-10-08 17:15:16 +00:00
Hidden Z
33216703d1 Create separate page for contact information 2013-10-08 17:15:15 +00:00
Hidden Z
41fdd20990 Add upstart initscript for py-i2phosts-master 2013-10-07 17:12:43 +00:00
Hidden Z
e2c2eeeaae py-i2phosts-master: chown log_file before daemonization
Master log file first opened as root, than daemonization with privilege
drop happens and master then unable to log to this logfile because of
insufficient permissions. So chown logfile to "runas" user to avoid this
situation.
2013-10-07 17:12:20 +00:00
Hidden Z
3b18825e4d py-i2phosts-maint: fix log message 2013-10-07 17:12:09 +00:00
Hidden Z
285ca6d4f9 py-i2phosts-master: unify import 2013-10-07 17:11:46 +00:00
Hidden Z
99bcf464bc maintainer.conf: add missing log_level and log_file variables 2013-10-07 17:11:39 +00:00
Hidden Z
6d1db09493 setup.py: update scripts location 2013-09-29 17:52:35 +00:00
Hidden Z
de9572895e settings.py: update translations setup according to django 1.5 2013-09-29 06:37:52 +00:00
Hidden Z
484cb5bee7 Update default DJANGO_PROJECT_PATH 2013-09-27 18:50:03 +00:00
Hidden Z
a432ef81a9 Update DJANGO_SETTINGS_MODULE in scripts 2013-09-27 18:49:41 +00:00
Hidden Z
7ea817f14a Add wsgi.py 2013-09-27 18:30:52 +00:00
Hidden Z
59f0cb930f Move common static files to static-common
And also use django.contrib.staticfiles to properly handle them.
2013-09-27 18:29:43 +00:00
Hidden Z
57478a6fd0 py-i2phosts-fetcher: fix typo in comment 2013-09-27 18:29:37 +00:00
Hidden Z
c280268486 py-i2phosts-fetcher: add error handling for invoking injector
py-i2phosts-injector may not be launched correctly, so we want to catch
the errors.
2013-09-27 18:29:27 +00:00
Hidden Z
f917b819da py-i2phosts-fetcher: rewrite fething errors handling
There were some changes between python 2.6 and 2.7 in urllib2 module
affected raising exceptions, so just update our behavior.
2013-09-27 18:29:12 +00:00
Hidden Z
22ef66ac48 py-i2phosts-checker: change words order in debug message 2013-09-27 18:29:02 +00:00
Hidden Z
ce5ccb5ed8 py-i2phosts-checker: add delay to receive BOB's greeting
Without this delay we're getting BOB's greeting later when expecting
lookup results.
2013-09-27 18:28:55 +00:00
Hidden Z
37e3e4a43e Rewrite py-i2phosts-checker to use BOB instead of SAM 2013-09-27 18:28:46 +00:00
Hidden Z
a8066b73ae Add requirements.txt for installing via pip 2013-09-27 18:28:03 +00:00
Hidden Z
0a77e60e72 py-i2phosts-master: add import workaround
In python-daemon 1.6 they renamed pidlockfile.py to pidfile.py.
2013-09-27 18:27:47 +00:00