forked from SUNET/soc-ops
Add DJANGO_ALLOWED_HOSTS or things will break.
This commit is contained in:
parent
4ddc3129a9
commit
e730cd9d80
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
class soc::vuln_dashboard(
|
class soc::vuln_dashboard(
|
||||||
String $hostname = $facts['networking']['fqdn'],
|
String $allowed_hosts = $facts['networking']['fqdn'],
|
||||||
String $tag = 'latest',
|
String $docker_tag = 'latest',
|
||||||
String $db_datadir = '/opt/vuln-dashboard/dbdata',
|
String $db_datadir = '/opt/vuln-dashboard/dbdata',
|
||||||
String $pocs_storage_dir = '/opt/vuln-dashboard/pocsdata',
|
String $pocs_storage_dir = '/opt/vuln-dashboard/pocsdata',
|
||||||
String $sso_service_name = 'dashboard-local',
|
String $sso_service_name = 'dashboard-local',
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
container_name: <%= @sso_service_name %>
|
container_name: <%= @sso_service_name %>
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
image: dashboard-local:latest
|
image: dashboard-local:<%= @docker_tag %>
|
||||||
pull_policy: never
|
pull_policy: never
|
||||||
environment:
|
environment:
|
||||||
DB_NAME: <%= @db_name %>
|
DB_NAME: <%= @db_name %>
|
||||||
|
@ -17,6 +17,7 @@ services:
|
||||||
DB_PORT: <%= @db_port %>
|
DB_PORT: <%= @db_port %>
|
||||||
CENSYS_API_ID: <%= @censys_api_id %>
|
CENSYS_API_ID: <%= @censys_api_id %>
|
||||||
CENSYS_API_SECRET: <%= @censys_api_secret %>
|
CENSYS_API_SECRET: <%= @censys_api_secret %>
|
||||||
|
DJANGO_ALLOWED_HOSTS: <%= @allowed_hosts %>
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8000:8000"
|
- "127.0.0.1:8000:8000"
|
||||||
init: true
|
init: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue