Remove CKAN hackfix for self-signed certificate verification

This commit is contained in:
Disassembler 2018-03-25 22:57:52 +02:00
parent c054be6dac
commit a000f27092
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 0 additions and 18 deletions

View File

@ -33,13 +33,6 @@ RUN \
&& find /srv/ckan-datapusher/src -name '.git*' -exec rm -rf {} + \ && find /srv/ckan-datapusher/src -name '.git*' -exec rm -rf {} + \
&& rm -rf /root/.cache && rm -rf /root/.cache
COPY docker/ /
RUN \
# Hackfix the self-signed certificate verification
cd /usr/lib/python2.7/site-packages \
&& patch -p0 </srv/ckan-datapusher/ssl_verify.patch
VOLUME ["/etc/ckan-datapusher", "/srv/ckan-datapusher/data"] VOLUME ["/etc/ckan-datapusher", "/srv/ckan-datapusher/data"]
EXPOSE 8080 EXPOSE 8080

View File

@ -1,10 +0,0 @@
--- orig/web.py
+++ ckanserviceprovider/web.py
@@ -733,6 +733,7 @@
try:
result = requests.post(
result_url,
+ verify=False,
data=json.dumps(job_dict, cls=DatetimeJsonEncoder),
headers=headers)

View File

@ -14,7 +14,6 @@ SQLALCHEMY_DATABASE_URI = 'sqlite:////srv/ckan-datapusher/data/jobs.db'
HOST = '0.0.0.0' HOST = '0.0.0.0'
PORT = 8080 PORT = 8080
SSL_VERIFY = False
FROM_EMAIL = 'ckan@spotter.ngo' FROM_EMAIL = 'ckan@spotter.ngo'