Skip to content

Commit

Permalink
update update installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Jul 8, 2024
1 parent 4df1284 commit a589f03
Show file tree
Hide file tree
Showing 76 changed files with 1,428 additions and 551 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ The internet.nl dashboard allows you to visualize batch scans from the internet.
- Second factor authentication
- Seamless internet.nl API integration

## Setup / installation

Read the installation tutorial here:
https://github.com/internetstandards/Internet.nl-dashboard/blob/main/docs/render/markdown/Installation.md


## Screenshots

Some screenshots can be found at: https://dashboard.internet.nl/#/tour
Expand Down
7 changes: 3 additions & 4 deletions dashboard/internet_nl_dashboard/views/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import orjson
from django.http import HttpResponse
from django.http import JsonResponse
from django.views.decorators.cache import cache_page
from websecmap.app.constance import get_all_values

Expand All @@ -20,5 +19,5 @@ def config_content():


@cache_page(ONE_HOUR)
def config(request) -> HttpResponse:
return HttpResponse(orjson.dumps(config_content()), content_type="application/json", status=200)
def config(request) -> JsonResponse:
return JsonResponse(config_content(), status=200, safe=False)
39 changes: 22 additions & 17 deletions dashboard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
str
),
'INTERNET_NL_SCAN_TRACKING_NAME': (
'Dashboard InternetNL [countrycode]',
'',
'This setting is used when sending API requests for tracking purposes. Setting this value make it clear who '
'is sending API requests. A good setting contains something unique about this installation, such as an '
'organization name. The maximum length is 40 characters.',
Expand Down Expand Up @@ -555,7 +555,7 @@

# frontend
"SITE_LAYOUT_NAME": (
'internet_nl',
'',
'The name of the layout, when internet_nl is used, logos, footer and styling from internet.nl is used. When '
'this field is empty all references to internet.nl disappear while still using the same color scheme. '
'Supported values: internet_nl, [empty]',
Expand Down Expand Up @@ -689,21 +689,9 @@
(
'General Dashboard Settings', (
'DASHBOARD_FRONTEND_URL',
'DASHBOARD_MAXIMUM_DOMAINS_PER_LIST',
'DASHBOARD_MAXIMUM_DOMAINS_PER_SPREADSHEET',
'DASHBOARD_MAXIMUM_LISTS_PER_SPREADSHEET',
'DASHBOARD_FRONT_PAGE_URL_LISTS',
'SITE_LAYOUT_NAME'
)
),

(
'Internet.nl Scan Settings', (
'SCAN_AT_ALL',
'INTERNET_NL_API_URL',
"CREDENTIAL_CHECK_URL",
"INTERNET_NL_SCAN_TRACKING_NAME",
"SCANNER_NAMESERVERS",
"CREDENTIAL_CHECK_URL",\
)
),

Expand All @@ -724,6 +712,22 @@
)
),

(
'Lists & Limitations', (
'DASHBOARD_MAXIMUM_DOMAINS_PER_LIST',
'DASHBOARD_MAXIMUM_DOMAINS_PER_SPREADSHEET',
'DASHBOARD_MAXIMUM_LISTS_PER_SPREADSHEET',
)
),

(
'Advanced settings', (
'SITE_LAYOUT_NAME',
"SCANNER_NAMESERVERS",
'DASHBOARD_FRONT_PAGE_URL_LISTS',
)
),

(
'Signup Settings (internet.nl only)', (
'SHOW_SIGNUP_FORM',
Expand All @@ -733,7 +737,7 @@
),

(
"Timeouts (advanced)", (
"Timeouts (expert settings)", (
'SCAN_TIMEOUT_MINUTES_DISCOVERING_ENDPOINTS',
'SCAN_TIMEOUT_MINUTES_RETRIEVING_SCANABLE_URLS',
'SCAN_TIMEOUT_MINUTES_REGISTERING_SCAN_AT_INTERNET_NL',
Expand All @@ -745,14 +749,15 @@
),

(
"Logging settings (advanced)", (
"Logging settings (expert settings)", (
"SCANNER_LOG_PLANNED_SCANS",
"SCANNER_AUTO_PURGE_FINISHED_SCANS",
)
),

(
"Unused / Expert settings", (
'SCAN_AT_ALL',
'INTERNET_NL_API_USERNAME',
'INTERNET_NL_API_PASSWORD',
'INTERNET_NL_MAXIMUM_URLS',
Expand Down
4 changes: 2 additions & 2 deletions dashboard/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from allauth.account import views as allauth_views
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.urls import include, path, re_path
from two_factor.urls import urlpatterns as tf_urls
from django.http import HttpResponse

from . import __version__

Expand All @@ -44,7 +44,7 @@ def trigger_error(request):
]


def not_supported(*arg, **args):
def not_supported(**args):
return HttpResponse("Feature not supported.")


Expand Down
Loading

0 comments on commit a589f03

Please sign in to comment.