Add instances.json, add running instructions, clean up imports

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-01-11 21:18:28 -05:00
parent c345b8005f
commit 5f52d94125
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
3 changed files with 18 additions and 3 deletions

View File

@ -5,4 +5,11 @@ Suds is a privacy-respecting frontend to Snopes.com
See instances.json
# Run your own instance
To be written
## Production
1. Clone the repository
2. Run `uwsgi --plugin python3 --http-socket 0.0.0.0:8001 --wsgi-file main.py --callable app --processes 4 --threads 2`
3. Point your reverse proxy to http://localhost:8001
## Development
1. Clone the repository
2. Run `python3 main.py`
3. Connect to http://localhost:8001

10
instances.json Normal file
View File

@ -0,0 +1,10 @@
[
{
"clearnet": "https://sd.vern.cc",
"tor": "http://sd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion",
"i2p": "http://vernrdigztvu3427stlditjofgkuoc3b7kbkxvlecaej5ufe4l5q.b32.i2p",
"country": "US",
"owner_name": "~vern",
"owner_website": "https://vern.cc"
}
]

View File

@ -2,9 +2,7 @@
from flask import Flask, render_template, request, redirect, Response, stream_with_context
import requests
import html
import re
import sys
from bs4 import BeautifulSoup
from copy import copy