Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
shadowban-eu-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
shadowban-eu-backend
Commits
8cea3cc5
Commit
8cea3cc5
authored
Jan 31, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup database conn
parent
7c87f3a4
Pipeline
#9124
passed with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
backend.py
backend.py
+1
-2
docker-entry.sh
docker-entry.sh
+5
-1
No files found.
backend.py
View file @
8cea3cc5
...
...
@@ -16,7 +16,6 @@ from bs4 import BeautifulSoup
from
db
import
Database
from
statistics
import
count_sensitives
from
typeahead
import
test
as
test_typeahead
from
db
import
connect
# This is a public value from the Twitter source code.
...
...
@@ -606,7 +605,7 @@ def run():
global
db
db
=
None
if
args
.
mongo_host
is
not
None
:
db
=
connect
(
host
=
args
.
mongo_host
,
port
=
args
.
mongo_port
,
db
=
args
.
mongo_db
)
db
=
Database
(
host
=
args
.
mongo_host
,
port
=
args
.
mongo_port
,
db
=
args
.
mongo_db
,
username
=
args
.
mongo_username
,
password
=
args
.
mongo_password
)
loop
=
asyncio
.
get_event_loop
()
# loop.run_until_complete(login_accounts(accounts, args.cookie_dir))
loop
.
run_until_complete
(
login_guests
())
...
...
docker-entry.sh
View file @
8cea3cc5
...
...
@@ -10,6 +10,8 @@ echo "--host "$HOST""
echo
"--mongo-host
$MONGO_HOST
"
echo
"--mongo-port
$MONGO_PORT
"
echo
"--mongo-db
$MONGO_DB
"
echo
"--mongo-username
$MONGO_USERNAME
"
echo
"--mongo-password
$MONGO_PASSWORD
"
echo
"--twitter-auth-key
$TWITTER_AUTH_KEY
"
echo
"--cors-allow
$CORS_ALLOW
"
...
...
@@ -24,4 +26,6 @@ python3 -u ./backend.py \
--mongo-port
$MONGO_PORT
\
--mongo-db
$MONGO_DB
\
--twitter-auth-key
$TWITTER_AUTH_KEY
\
--cors-allow
$CORS_ALLOW
--cors-allow
$CORS_ALLOW
\
--mongo-username
$MONGO_USERNAME
\
--mongo-password
$MONGO_PASSWORD
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment