File: netdata-web.README.Debian

package info (click to toggle)
netdata 1.37.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 59,364 kB
  • sloc: ansic: 302,654; javascript: 77,865; python: 27,094; sh: 18,726; cpp: 2,916; makefile: 2,547; pascal: 171; xml: 10
file content (20 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
netdata-web for Debian
======================

1. Content-Security-Policy (CSP)
--------------------------------

By default netdata uses its own embedded webserver, listening to localhost:19999
only. When exposing netdata to the network, it is recommended for security
reasons to use a reverse proxy in front of it, such as apache2 (see
netdata-apache2 package).

If the proxy wants to set Content-Security-Policy headers, it can use the
following for netdata (for apache2):

	Header always set Content-Security-Policy "default-src 'unsafe-inline' \
	http://localhost:19999 https: 'self' 'unsafe-eval'; script-src \
	'unsafe-inline' https: 'self' 'unsafe-eval'; style-src https: 'self' \
	'unsafe-inline'"

 -- Daniel Baumann <daniel.baumann@progress-linux.org>  Mon, 12 Aug 2019 20:11:00 +0200