Skip to content

Commit

Permalink
Fix #27 & Update dependencies
Browse files Browse the repository at this point in the history
Updated dependencies: django, django-mysql, thehive4py, dnstwist, django-import-export, dnspython...
  • Loading branch information
Felix83000 committed Feb 1, 2021
1 parent 83f7fc1 commit e42edae
Show file tree
Hide file tree
Showing 8 changed files with 841 additions and 405 deletions.
451 changes: 407 additions & 44 deletions Searx/searx/settings.yml

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions Searx/searx/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ logto = /var/log/uwsgi/uwsgi.log
# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close

# uwsgi serves the static files
# expires set to one day as Flask does
static-map = /static=/usr/local/searx/searx/static
static-expires = /* 864000
static-gzip-all = True
offload-threads = %k

# Cache
cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
37 changes: 37 additions & 0 deletions Searx/searx/uwsgi.ini.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[uwsgi]
# Who will run the code
uid = searx
gid = searx

# Number of workers (usually CPU count)
workers = 4

# The right granted on the created socket
chmod-socket = 666

# Plugin to use and interpretor config
single-interpreter = true
master = true
plugin = python3
lazy-apps = true
enable-threads = true

# Module to import
module = searx.webapp

# Virtualenv and python path
pythonpath = /usr/local/searx/
chdir = /usr/local/searx/searx/

# Disable logging for privacy
disable-logging=True

# But keep errors for 2 days
touch-logrotate = /run/uwsgi-logrotate
unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
log-backupname = /var/log/uwsgi/uwsgi.log.1
logto = /var/log/uwsgi/uwsgi.log

# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.1.4 on 2021-02-01 16:54

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('threats_watcher', '0011_auto_20201123_1812'),
]

operations = [
migrations.AlterField(
model_name='posturl',
name='url',
field=models.URLField(default='', max_length=1000),
),
migrations.AlterField(
model_name='source',
name='url',
field=models.URLField(max_length=350),
),
]
4 changes: 2 additions & 2 deletions Watcher/Watcher/threats_watcher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Source(models.Model):
"""
Stores Source RSS Feed Url which will be used to find new words tendencies in **threats_watcher/apps.py** Algorithms.
"""
url = models.URLField(max_length=250)
url = models.URLField(max_length=350)
created_at = models.DateTimeField(default=timezone.now)

def __str__(self):
Expand All @@ -24,7 +24,7 @@ class PostUrl(models.Model):
Stores Post Urls which came from the RSS Feeds.
Related to severals :model:`threats_watcher.TrendyWord`.
"""
url = models.URLField(max_length=250, default="")
url = models.URLField(max_length=1000, default="")
created_at = models.DateTimeField(default=timezone.now)

class Meta:
Expand Down
Loading

0 comments on commit e42edae

Please sign in to comment.