Skip to content

Commit e42edae

Browse files
committed
Fix thalesgroup-cert#27 & Update dependencies
Updated dependencies: django, django-mysql, thehive4py, dnstwist, django-import-export, dnspython...
1 parent 83f7fc1 commit e42edae

File tree

8 files changed

+841
-405
lines changed

8 files changed

+841
-405
lines changed

Searx/searx/settings.yml

+407-44
Large diffs are not rendered by default.

Searx/searx/uwsgi.ini

+10
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,13 @@ logto = /var/log/uwsgi/uwsgi.log
3535
# No keep alive
3636
# See https://github.com/searx/searx-docker/issues/24
3737
add-header = Connection: close
38+
39+
# uwsgi serves the static files
40+
# expires set to one day as Flask does
41+
static-map = /static=/usr/local/searx/searx/static
42+
static-expires = /* 864000
43+
static-gzip-all = True
44+
offload-threads = %k
45+
46+
# Cache
47+
cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1

Searx/searx/uwsgi.ini.old

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[uwsgi]
2+
# Who will run the code
3+
uid = searx
4+
gid = searx
5+
6+
# Number of workers (usually CPU count)
7+
workers = 4
8+
9+
# The right granted on the created socket
10+
chmod-socket = 666
11+
12+
# Plugin to use and interpretor config
13+
single-interpreter = true
14+
master = true
15+
plugin = python3
16+
lazy-apps = true
17+
enable-threads = true
18+
19+
# Module to import
20+
module = searx.webapp
21+
22+
# Virtualenv and python path
23+
pythonpath = /usr/local/searx/
24+
chdir = /usr/local/searx/searx/
25+
26+
# Disable logging for privacy
27+
disable-logging=True
28+
29+
# But keep errors for 2 days
30+
touch-logrotate = /run/uwsgi-logrotate
31+
unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
32+
log-backupname = /var/log/uwsgi/uwsgi.log.1
33+
logto = /var/log/uwsgi/uwsgi.log
34+
35+
# No keep alive
36+
# See https://github.com/searx/searx-docker/issues/24
37+
add-header = Connection: close
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 3.1.4 on 2021-02-01 16:54
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('threats_watcher', '0011_auto_20201123_1812'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='posturl',
15+
name='url',
16+
field=models.URLField(default='', max_length=1000),
17+
),
18+
migrations.AlterField(
19+
model_name='source',
20+
name='url',
21+
field=models.URLField(max_length=350),
22+
),
23+
]

Watcher/Watcher/threats_watcher/models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Source(models.Model):
1212
"""
1313
Stores Source RSS Feed Url which will be used to find new words tendencies in **threats_watcher/apps.py** Algorithms.
1414
"""
15-
url = models.URLField(max_length=250)
15+
url = models.URLField(max_length=350)
1616
created_at = models.DateTimeField(default=timezone.now)
1717

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

3030
class Meta:

0 commit comments

Comments
 (0)