9
0
Fork 1

Add DJANGO_ALLOWED_HOSTS or things will break.

This commit is contained in:
Johan Björklund 2024-12-06 13:30:31 +01:00
parent 4ddc3129a9
commit e730cd9d80
Signed by: bjorklund
GPG key ID: 5E8401339C7F5037
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
class soc::vuln_dashboard(
String $hostname = $facts['networking']['fqdn'],
String $tag = 'latest',
String $allowed_hosts = $facts['networking']['fqdn'],
String $docker_tag = 'latest',
String $db_datadir = '/opt/vuln-dashboard/dbdata',
String $pocs_storage_dir = '/opt/vuln-dashboard/pocsdata',
String $sso_service_name = 'dashboard-local',

View file

@ -7,7 +7,7 @@ services:
container_name: <%= @sso_service_name %>
depends_on:
- postgres
image: dashboard-local:latest
image: dashboard-local:<%= @docker_tag %>
pull_policy: never
environment:
DB_NAME: <%= @db_name %>
@ -17,6 +17,7 @@ services:
DB_PORT: <%= @db_port %>
CENSYS_API_ID: <%= @censys_api_id %>
CENSYS_API_SECRET: <%= @censys_api_secret %>
DJANGO_ALLOWED_HOSTS: <%= @allowed_hosts %>
ports:
- "127.0.0.1:8000:8000"
init: true