forked from puddyput/toxme.se
-
Notifications
You must be signed in to change notification settings - Fork 6
Fix things #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
subliun
wants to merge
46
commits into
subliun:master
Choose a base branch
from
LittleVulpix:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix things #17
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
528917e
Update copyright year/link
LittleVulpix f63f535
Update addkeyweb_success.html
LittleVulpix 9bdcf85
Update api_error_pretty.html
LittleVulpix f00a333
Update edit_ui.html
LittleVulpix 2f98596
Update fourohfour.html
LittleVulpix c10ea92
Update lookup_home.html
LittleVulpix 278e06f
Update onemomentplease.html
LittleVulpix e527bb4
Update public_userlist.html
LittleVulpix d47a922
Merge pull request #1 from LittleVulpix/Update-copyright
LittleVulpix 23b2284
Merge pull request #2 from subliun/master
LittleVulpix b653cf7
Get rid of some crawlers
LittleVulpix 2b2e9f2
Add the robots.txt file to be served
LittleVulpix f852b19
Merge pull request #3 from LittleVulpix/LittleVulpix-robotstxt
LittleVulpix 140f964
Also delete item from cache...
LittleVulpix 2fff88a
Merge #4 - Fix cache for user deletion
LittleVulpix 3c7fa35
Switch original link.
LittleVulpix 3540ae4
Disallow crawling of specific users, allow root
LittleVulpix 08e5d3d
Add a way to contact me
LittleVulpix 8e7a235
Add a more apparent way of contacting me
LittleVulpix edf6c53
Merge pull request #5 from LittleVulpix/Contact-the-maintainer
LittleVulpix cc3dae9
Modify the way of contacting me, add tox contact
LittleVulpix 7b59667
Update README.md
bennabiy 5089026
Merge pull request #7 from bennabiy/patch-2
LittleVulpix f9aaa91
Update README.md
LittleVulpix 8c013ea
Merge pull request #8 from LittleVulpix/fix-missing-dependency
LittleVulpix 6ed4909
@toxme.io is not an e-mail domain
LittleVulpix 1e8ab68
Merge pull request #9 from LittleVulpix/not-an-email
LittleVulpix 49d5290
Fix headings in README
TheDcoder 40048e5
Merge pull request #10 from TheDcoder/patch-1
LittleVulpix d80ad34
Show full tox ID even when user has no bio
LittleVulpix 313d6f6
Merge pull request #11 from LittleVulpix/LittleVulpix-show-id
LittleVulpix 65c1fc1
Add echobot as a test contact
LittleVulpix f3344ec
Merge pull request #12 from LittleVulpix/LittleVulpix-echobot
LittleVulpix f91a3f2
Add favicon to the template
LittleVulpix 08ad329
Upload the favicon file
LittleVulpix c9e68b6
Merge pull request #13 from LittleVulpix/favicon
LittleVulpix 061c944
Fix headings in doc/config.md
robinlinden 98b3ffd
Merge pull request #15 from robinlinden/fix-markdown
LittleVulpix e62ccd7
Omit Bios from public view (#16)
c852428
toxme.io copyright update for 2018 (#17)
LittleVulpix fd5613c
Remove CDN dependency for the font+css (#18)
LittleVulpix ba2c5e3
This is why we can't have nice things. (#19)
LittleVulpix 1895c8f
No more friends (#22)
LittleVulpix 045b7cd
Don't redirect to friends, friends are no more.
LittleVulpix 1d8aed9
It is 2019 my dudes. (#24)
LittleVulpix 52c7319
RIP
LittleVulpix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,74 @@ | ||
#ToxMe source | ||
## I no longer run this service. | ||
|
||
https://blog.fefe.de/?ts=a3695410 and this is why we can't have nice things. | ||
|
||
Due to recent uninformed and stupid decisions by people who should uphold and protect the law and order, and because I have no need of such drama in my life, I'm no longer maintaining this service. | ||
|
||
You can find me on toktok IRC if you are interested in having the torch passed to you, but I'll only accept trustworthy individuals I've known to be active in the community/dev team. | ||
|
||
So long. | ||
|
||
|
||
~~## You can contact the maintainer of the toxme.io directly.~~ | ||
|
||
~~I can be found on freenode IRC, channel #tox , or you can add me from tox by adding [email protected] .~~ | ||
|
||
~~I can assist you with removing or changing your user account on toxme.io in the event that you forget your toxme.io-generated password.~~ | ||
|
||
~~However, please note that you need to be able to prove the account in question is yours. This means that you need to have access to your old toxid.~~ | ||
|
||
~~I am not a tech support for tox issues. If you have an issue with tox, raise a ticket on github or ask someone on the IRC.~~ | ||
|
||
# ToxMe source | ||
|
||
ToxMe is a speedy and feature-packed Tox name resolution server. | ||
|
||
##Installing: | ||
## Installing: | ||
|
||
Quick notes before we get started, ToxMe's source is not required to access and use it in a client. Additionally, it's being written in OS X and ran on Ubuntu, so please correct any odd quirks I might accidentally include. | ||
|
||
###OS X | ||
### OS X | ||
Install homebrew from http://brew.sh | ||
|
||
```bash | ||
brew install libsodium python3 git libffi | ||
git clone https://github.com/subliun/toxme | ||
git clone https://github.com/LittleVulpix/toxme | ||
pip install -r misc/requirements.txt | ||
``` | ||
|
||
And you should be ready! | ||
|
||
###Ubuntu | ||
Note: we use Ubuntu 14.04 | ||
### Ubuntu | ||
Note: we use Ubuntu 14.04, but newer releases should work too. | ||
|
||
```bash | ||
apt-get install python3 python3-pip libffi-dev build-essential wget git sqlite | ||
wget -P /tmp/ https://download.libsodium.org/libsodium/releases/libsodium-1.0.3.tar.gz | ||
cd /tmp/ | ||
tar -xvf libsodium-1.0.3.tar.gz | ||
cd libsodium* | ||
apt-get install python3 python3-pip libffi-dev build-essential wget git sqlite libtool autotools-dev automake checkinstall check git yasm | ||
git clone https://github.com/jedisct1/libsodium.git | ||
cd libsodium | ||
git checkout tags/1.0.3 | ||
./autogen.sh | ||
./configure --prefix=/usr | ||
make -j4 && make install | ||
cd .. && rm -rf libsodium* | ||
make check | ||
sudo make install | ||
cd ~ | ||
git clone https://github.com/subliun/toxme | ||
pip install -r misc/requirements.txt | ||
git clone https://github.com/LittleVulpix/toxme | ||
cd toxme | ||
pip3 install -r misc/requirements.txt | ||
``` | ||
|
||
### Optional: | ||
#### postgres support: | ||
#####OS X | ||
##### OS X | ||
```brew install postgresql``` | ||
|
||
#####Ubuntu | ||
##### Ubuntu | ||
```apt-get install libpq-dev``` | ||
|
||
#####All | ||
##### All ( For Ubuntu, use pip3 instead of pip ) | ||
```pip install psycopg2``` | ||
|
||
|
||
##Getting started: | ||
## Getting started: | ||
|
||
For most testing and development work you'll need both a config.json and a sqlite3 database. | ||
|
||
|
@@ -56,11 +78,13 @@ A database can be generated locally by running ```sqlite3 -init misc/structure.s | |
|
||
Now just run python3 src/main.py and it should start automatically! | ||
|
||
##Tips: | ||
## Tips: | ||
|
||
If you're testing it locally make sure secure_mode in config.json is marked off (0) otherwise you'll be required to reverse proxy it and use an SSL cert | ||
|
||
##Documentation: | ||
## Documentation: | ||
- [API reference](/doc/api.md) | ||
- [config options](/doc/config.md) | ||
- [PyToxMe](https://github.com/ToxMe/PyToxMe) | ||
|
||
~~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
#Config options refrence | ||
# Config options refrence | ||
|
||
config.json is a json based set of options evaluated by main.py that set various properties and options in the sever. | ||
|
||
###Database URL | ||
### Database URL | ||
```"database_url": "sqlite:///tox.db"``` | ||
|
||
A SQL alchemy style connector to the database to use. This can be sqlite, postgres, mssql, etc. | ||
|
||
###Registration domain | ||
### Registration domain | ||
```"registration_domain": "localhost"``` | ||
|
||
The domain appended by ToxMe to the end of records (user@localhost for http://localhost/u/user). | ||
|
||
###Server port | ||
### Server port | ||
```"server_port": 8080``` | ||
|
||
The port ToxMe listens on for http. | ||
|
||
###Server address | ||
### Server address | ||
```"server_addr": "127.0.0.1"``` | ||
|
||
The IP ToxMe listens on. | ||
|
||
`127.0.0.1` prevents outside connections while `0.0.0.0` allows all. | ||
|
||
###PID File | ||
### PID File | ||
```"pid_file": "pidfile.dl"``` | ||
|
||
Where ToxMe places it's own PID. Useful for daemons. | ||
|
||
###Is proxied | ||
### Is proxied | ||
```"is_proxied": 1``` | ||
|
||
Tells ToxMe to resolve a connecting clients IP from a reverse proxies headers. | ||
|
||
###suid | ||
### suid | ||
```"suid": "toxme"``` | ||
|
||
The user ToxMe runs as, please ensure it exists. | ||
|
||
###Sandboxing | ||
### Sandboxing | ||
```"sandbox": 1``` | ||
|
||
Removes API limits for testing. | ||
|
||
|
||
###Template | ||
### Template | ||
```"templates" : "tox"``` | ||
|
||
The template to use for the web interface. | ||
|
||
###Find friends | ||
### Find friends | ||
```"findfriends_enabled" : 1``` | ||
|
||
Enables friend discovery features. | ||
|
||
###Number of workers | ||
### Number of workers | ||
```"number_of_workers": 2``` | ||
|
||
Number of processes to use. | ||
Number of processes to use. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
User-agent: * | ||
Allow: /$ | ||
Disallow: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,10 @@ | |
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="shortcut icon" href="/static/favicon.ico"> | ||
<title>Tox ID Service</title> | ||
<link href="/static/tox.css" rel="stylesheet" type="text/css"> | ||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | ||
<link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> | ||
<script type="text/javascript" src="/static/lookup.js"></script> | ||
</head> | ||
<body> | ||
|
@@ -25,7 +26,7 @@ | |
<input id="search_text" type="text" placeholder="[email protected]"> | ||
<button id="search_go"><span class="fa fa-search"></span></button> | ||
</div> | ||
<p>Don't know anyone? <a href="/friends/0">Find some friends here.</a></p> | ||
<p>Want to test toxme? Add echobot! - <a href="/u/echobot">tox://[email protected]</a> | ||
</div> | ||
<div class="chunk results"> | ||
<div id="lookup_error" class="chunk report" style="display:none"></div> | ||
|
@@ -42,8 +43,8 @@ | |
<div id="footer" class="footer"> | ||
<p> | ||
|
||
<small class="de-emphasize">Copyright © 2015 Tox Project. All rights reserved.</small> | ||
<small class="de-emphasize"><a href="https://github.com/subliun/toxme">I'm open source!</a></small> | ||
<small class="de-emphasize">Copyright © 2019 Tox Project. All rights reserved.</small> | ||
<small class="de-emphasize"><a href="https://github.com/LittleVulpix/toxme">I'm open source!</a></small> | ||
</p> | ||
</div> | ||
</article> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure the
$
mark is only useful in the router regex, marking the end of the line.