Skip to content
Permalink
Browse files

Updated to support GCS.

  • Loading branch information...
lavalamp
lavalamp committed Jul 24, 2017
1 parent 9f0a661 commit d57596919fe45891b28aa4e1cdd8662a0a13658a
@@ -5,4 +5,5 @@ nginx/server.key
**/.DS_Store
configs/app.config.ts
configs/settings.py
configs/tasknode.cfg
configs/tasknode.cfg
secrets/gce.json
@@ -3,20 +3,15 @@
aws_key_id = [[REPLACE]]
aws_secret_key = [[REPLACE]]
aws_default_region = us-west-1
aws_s3_bucket = websight-dev
aws_s3_screenshots_path = screenshots
aws_s3_default_acl = private
aws_s3_certificates_path = certificates
aws_s3_bad_html_path = bad-html
aws_s3_uploads_path = user-uploads

[Celery]

celery_app_name = websight_celery
celery_user = wsuser
celery_pass = wspassword
celery_host = rabbitmq
celery_virtual_host = wsvhost
celery_app_name = datahound_celery
celery_user = [[REPLACE]]
celery_pass = [[REPLACE]]
celery_host = [[REPLACE]]
celery_virtual_host = [[REPLACE]]
celery_enable_utc = True
celery_message_compression = gzip
celery_track_started = True
@@ -62,7 +57,7 @@ django_settings_module = wsbackend.settings

dns_resolver_tries = 24
dns_resolver_timeout = 2
dns_hosts_file_location = /private/etc/hosts
dns_hosts_file_location = /etc/hosts
dns_dnsdb_api_key = [[REPLACE]]
dns_dnsdb_api_host = https://api.dnsdb.info
dns_dnsdb_record_types = A, CNAME, AAAA, MX, NS, SOA
@@ -90,7 +85,6 @@ files_default_scan_ports = default_scan_ports.csv
files_dns_record_types = dns_record_types.csv
files_dns_resolvers = resolvers.txt
files_fingerprints = fingerprints.csv
files_order_tiers = order_tiers.json
files_user_agents = user_agents.csv
files_tlds = tlds.txt
files_extended_validation_oids = extended_validation_oids.csv
@@ -103,6 +97,10 @@ fs_temporary_file_dir = /tmp/

fingerprint_socket_timeout = 2

[GCP]

gcp_creds_file_path = files/gce.json

[General]

gen_default_encoding = utf-8
@@ -136,11 +134,6 @@ log_max_bytes = 10485760
log_max_files = 10
log_error_file = error.log

[Payments]

payments_stripe_publishable_key = [[REPLACE]]
payments_stripe_secret_key = [[REPLACE]]

[Recaptcha]

recaptcha_login_attempt_threshold = 3
@@ -149,8 +142,8 @@ recaptcha_timeout_minutes = 1

[Redis]

redis_host = redis
redis_port = 6379
redis_host = [[REPLACE]]
redis_port = [[REPLACE]]

[Rest]

@@ -159,11 +152,6 @@ rest_max_network_mask_length = 32
rest_domains_file_cutoff = 200
rest_domain = [[REPLACE]]

[Scanning]

scan_credits_per_period = 1
scan_credit_period = 86400

[Selenium]

selenium_screenshot_delay = 2
@@ -178,6 +166,16 @@ smtp_password = [[REPLACE]]
smtp_host = [[REPLACE]]
smtp_port = [[REPLACE]]

[Storage]

storage_platform = gcs
storage_bucket = websight-dev
storage_screenshots_path = screenshots
storage_certificates_path = certificates
storage_bad_html_path = bad-html
storage_uploads_path = user-uploads
storage_signed_url_duration = 3600

[Tasks]

task_default_index = ws-tasks
@@ -8,7 +8,10 @@ ADD ws-backend-community /ws-backend

RUN pip install -r /ws-backend/requirements.txt

COPY configs/tasknode.cfg /ws-backend/tasknode/tasknode.cfg
COPY configs/settings.py /ws-backend/wsbackend/settings.py
ADD configs/settings.py /ws-backend/wsbackend/settings.py
ADD configs/tasknode.cfg /ws-backend/tasknode/tasknode.cfg
ADD secrets/gce.json /ws-backend/files/gce.json

ENV GOOGLE_APPLICATION_CREDENTIALS /ws-backend/files/gce.json

WORKDIR /ws-backend
@@ -2,7 +2,7 @@ FROM wsbackend-base:latest

MAINTAINER Christopher Grayson "chris@websight.io"

RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN mv /bin/sh /bin/sh.old && ln -s /bin/bash /bin/sh

RUN apt-get update \
&& apt-get install -y curl zmap nmap \
@@ -4,3 +4,4 @@ docker build -f dockerfiles/backend-base.dockerfile -t wsbackend-base:latest .
docker build -f dockerfiles/api.dockerfile -t wsbackend-api:latest .
docker build -f dockerfiles/tasknode.dockerfile -t wsbackend-tasknode:latest .
docker build -f dockerfiles/frontend-base.dockerfile -t wsfrontend-base:latest .
docker build -f dockerfiles/frontend.dockerfile -t wsfrontend:latest .
No changes.

0 comments on commit d575969

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.